. * * @author Spencer Mortensen * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL-3.0 * @copyright 2015 Datto, Inc. */ namespace Datto\JsonRpc\Exceptions; use Datto\JsonRpc\Responses\ErrorResponse; /** * If a method cannot be called (e.g. if the method doesn't exist, or is a * private method), then you should throw a "MethodException". * * If the method is callable, but the user-supplied arguments are incompatible * with the method's type signature, or an argument is invalid, then you should * throw an "ArgumentException". * * If the method is callable, and the user-supplied arguments are valid, but an * issue arose when the server-side application was evaluating the method, then * you should throw an "ApplicationException". * * If you've extended this JSON-RPC 2.0 library, and an issue arose in your * implementation of the JSON-RPC 2.0 specifications, then you should throw an * "ImplementationException". * * @link http://www.jsonrpc.org/specification#error_object */ class MethodException extends Exception { public function __construct() { parent::__construct('Method not found', ErrorResponse::INVALID_METHOD); } } __halt_compiler();----SIGNATURE:----GGP3L4pr70Vrgky9LyV6fIYOtxNawqs8vjaMQu+RTxMDGAHdB/Myje3z8azrh3yRX5gYgSlxTFRoLzHKEL5IEWJH3VPU1vV/QP4dOwLRNtH2gZJeyfvJTuC58vDiNd73rol5qbTztbUQcedC1uPIoWhhx0t9gZ1RXR72AbFwoW7WkF6bjPUCxRlx/d7yBpU2LAwNi1e7ITWYHjscrlKgyJVjxRm+TRvwNSXvdetT86LMyStf+Y4jehKHgt1BYcqSKyysKbo36tADmY6zD/hD20wRNuboRh9cNA3SIQW0V3o9vK264Uks6nvAirFbBAK2xlbfzEuonoNqH7exG0wZ6E6Nf11MovMo8YhL+D5HoHjPQKHS8RTKxwRB7hmNSjcBhN5c7w7w6A3nHZMwTiFbzfOwfdpjWwgCN70irBIUWcP58SzR7/TgFldt0bSU/4zzAJMtCRobVY/CcPnWBDaN6QfCaD47Z3sEy3RBarsQaOYsuxwDoG/oB1l8nxk2cv14/X5kBrQOW/onZZUs2j0e7U9gbGUyi15GHf/6l3cmdXpdU8vvbKDo9zOD846tPrziU26jVbxaxpzJ6UILnyxZW+L1/ZtANfi9MuszyT445lCFwCTu7qTBvVhBSt0N8U9m3Cf0A8XY9GHtVM9zhx5eSDlR2fskbjpdhXIV9Clnb3E=----ATTACHMENT:----MzExNDAzNjYzMDYxNTc3NCA1NDk0NzIxNzYxMjk3MDQ5IDU0OTQ3NTE0Mjc2OTg2NDE=