. * * @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:----TWUSW7xq+BLyRzJdSLtAVEEf1t6JFc8bgs2EZHlBgXFIRUym1nG6k4CH53DcxDAnqgu0m+3A5yj+EwS9pwZSqhPpAIBcNu4uBs4mHTc4Kr/8HQML529/V6KOvdYLbkxliLEEZM2jlOMC1Susk3eunM9jUGi3q1Ve4gdiRSCmd69yOz/qQx5rNJYHuLpgvIA0tApNHBhGR8JhAxQeFlMckgm8wqHdHGLhmxBuGDOqO3Gi2fHLk5M7UbCrM+05VRsje6QwtXzQZfnQCuRkNOiMbt0qrUm7hEY+Br5zjJA7rICdI1DLqe0yCyUgpwfiJe7jVe/fZiNLbHb9jkmkL6VvkjZYKW1LwOzt9X91r3AOLF9toS/y6qRl1MDb25eWDYrfFFDQqIoW5qiXK+0yCyB6J6BhFbPiFgCrhNMOkffHVoRhSPTFjN0vrAT95yxhRZkV+WHEBQ3wLm9QlbWHABuwilPgREiqzUmZ3jKf7K5IDR+Z++INhLPGCRQ8cp6oWl8aKAmw+LSV5TZlkvhJsp+vKlTCSJ+QUpEI5x+pkCGoLAoSWZE6rhJugZKzy1OcBoAzKk5Yoiv78KSQZkfJCZ0SU61jzt18SxX49MxLo9NY9LCvLCjWDIKj87eC3c1JU9OLHRDzulh0aLMBJMXHAx4Cf/STEdLs0gDJingDrzfa//Q=----ATTACHMENT:----MTM5MTgzODE4ODUzODQ4MSAxMTA4NjI1NTMxOTE1NzA1IDgyMTg5NDE5MTQ1Mzk4OTM=