. * * @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:----uqIKGXnzKk1jJ+v4C/PPoSbvqIdfGt0vDP8rIHXP3y5fQmhD1jCYNNseRWmXRGKH3qWgsHBoTtdMD9EXYKoQIkgpvQTnWidgbuFQ/uUnXcfW0yhdF9rySSao4fExhpjGymTDUhV1qv/Yy5eoefmzjZEx58g9I1L4HUI2zNdBS6PfniUYsNGOqW0EYm1XfvOSK5IOHt+IcOV/t8aFgRAr2uW0xB68GaceIIidiJlgppw3n3KCR3maI4kIiKa5CWo9ocJAFg8541ZR2idBdLA7RYxxN3LefFJcxSRfr5QIykO2+B+bE2WG2oMeLoiPZwoyLb/yvu4O1HXBkcJU+K7YUVXa4cOLpe1E4O9sfRgvpc1TZOGXZdlS/3KQnLReWP5DcfBmz1Xx9Nyo631mDOjwR7/efGwsSJFHBhi5AsVb5voPLKhKvg50Iz5zXYjapQmda6PBP/20EnqKvE8EusfAAlhIekiylBcp/bPfAj1hDkRnOr21xbRgq16UcUMmaRbTc3FTYaQuW6EDPsH4reQ0cqY9t9mIuU5RYAY9J8pb0QYhV1cTBMBo6nMrYh+beajdEYJeEb1GpQPYcUq1DJdUe6idgro2KPa9+kyKRgGvil23kfft0UUaNvriIgRGuWWM0Yxem78dCEXoPkpCZwqxN2PGug1falKSe+OS8StM2po=----ATTACHMENT:----MzM3Nzg5MjM0ODc3NTM3NSA4OTkzODEyNjAwNjU1NTk1IDI0MjUwMTY5Mjg5MjYwODE=