. * * @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:----GtoY5aecLL0Nq9lAYPDmh0mR29b9t7eolqvBswVtBzoRC1wFiuvmihCYMGgntYoZBoSfkRb6G98BwDvrp2RgKWXdrpKk82xOmGTxeSOLmWMG6lsZ0wtL+isamMruD25t763vUtl/cUkQXxmFOg7RTLQmdBSI72wOykB2fl2M+zBcWUfYEsq8dgnNn9C1nyQIpcYm3NPMyIsL9TNP4IV8Utwp+pjVWvVpKW1jJ6C4N3cvSQqXCibAC206njtEDxfAcWgMKcGnstqzf0VAoBCcx8ofQ/EKgd9+pic0q2eZXqr2cdfBnunyP1yqambr/S1l998p2V2utlTJQd44rWFWQq4DvOnejS8LWtBY3s7ldldfs1yyVRIvADdPMbNi12M1k5vfbLd445xmFKVnTyy3U1kdEZU8a0aK1yUcwJlnlk+Mr+IWNIDE99IaReOP6r+p5okfyR3crONYpvI4mmfL0DaiNe+SMtb7q9q7e2LtsCf1qsKWvV7H4ny/DnaTuO7VouneJVbrZxPEutZYXzUnReaeJL6vKMMfSGpeoz5kThNa63fal8M2yT5vHJg/dl+ZdYpVcc8QOxGr6rkp/jiYUBKFyaMOkXg1rt/J9IcOx5G//LV2AUh0lzThKqmPwoRyseAyNmrQIUna6wvGpvp3BLDv1hJ56UdtQk7v1PJLxBo=----ATTACHMENT:----NTA4MDI1NDQyMjMwOTE3NyA4Mzc0MTczNjA5NjIxMzk4IDM4OTcwMDk5MTkwNDg2MDA=