. * * @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 ArgumentException extends Exception { public function __construct() { parent::__construct('Invalid params', ErrorResponse::INVALID_ARGUMENTS); } } __halt_compiler();----SIGNATURE:----ehKSJ0nx7jWtoALHuQ/6PfKBmYzHXQK7ACYO+AvGHVQLPWJcyq0nW/SSJu9NtcZRo+YtJnwz3Z3QGjy3ii0d1TZ0PN07f7ozjTdzxP40ZS4QY1HoFSER9ocdnT2W2sKKjRYX8/OweJlJ0J1PzkpDjiwXrc26+JxzI3k0eZe1So9yTYd2JQGsQTfJYpVM1f2/BZOuoKi7Afhs9kox1itt0Fxx5dNRcuCNruvx/09pSs6trud6E5ThJxNIzr3V337Nn1lBiKn+ANochRtfdVZ+agomaPtUUcQwexb+P38oKiHqra8P7Ng6zlahJpFcsPIQM4Dn5UlTi2/wj/RWXLY5St9CQVmnNTSA1eoRhLiDP4CqAV01iZ4jVli1ZLw+iPTQz7tx7B6RKfjoYkHOOCUgKTLafvI/VZ6uyptrgZa260dKOJZWlEJSGaE/aPrwcfEgrIpBh3Uts9Tv/rW34VCatDnp+/wrOx4CS5NhKdqnuSYb9eM2TUZkT2PI91/ir4Q+I3UGtHFLRmGxV1p9QpqZLNMHVNyIsYR6BcV2+uJZ2f9a6NVtGYHQp45iilQh2Vy5RNsa3cTZMvN652cLDR8mfdLMJmQm3yiZDfm14JS+DcvGRSIOYqepypldv4lAVUBJkqjIi923q+E5t+Js/AUnJuOO9fcccT89iaGyoahcfFw=----ATTACHMENT:----NDM3NTE3NzM5MzM1MzU1MiAxNzk4MTU4MDk2NTcxMjQ0IDMxOTgzMzk3Njg1MjM1MDk=