. * * @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:----shkOt2QYwX1jM9z79YsX4Tl3zSPufZIBEXxGUu0hCZAmR1xPqkImhw3nhQkGcDNve6JPGosWmbsS+s88R+avE5+V8lryCqhRI6sUNHMXT8CoIbqnBvDVs6Kg41e+rxKCq03ftXQGWTTGqH+VYH7ennkYFNcUkoh17O8I+9m8mcerVCfY1Hb3Obvt/DiYn87J3OTaEJ5jhNzrphKkremicT1Dvz5dJj8V1f8k/xwV8cXvG3IF1pI+ehe43dXKLsCGv3hB4HiFc7akMntA4/R8jrAjz0YBUs7mUpgSYAVBG7E6pE+DtBXvaniqrHqrD7HOuIjS19NwY8xJMQWDx+Uy5uA3zqUYCWx1Ffc9r1x38C23fMoIo5YH9PSJoDP7CEzS0dCFFaIkBXpKnXTp0Ye0BJ1YBklsLz5Wpv/ykjfnIYSw2MOX+1Znp+txaaAayUFQF7viYTIXrtQEaBqQB+mmEt8m6GMj+ABstEUgZ1L8n5jDPeHz1T8xg6tS5ZS28m7DvokABwzLaKWxRbcb2Cl9YBM98FVWko8GSoOGzPYPcAIujOL+v4RLomy20yoP5tzAYAEb08k2sD3zKT1O8lZ0hHFgkjegWVBmuPNUwU+pKm4AS5roo3MNjf2kJ47zt93JuL7j2Z7xs7yDmkuBgLCwGgcaJg4Ben/mjjxMRAodMcg=----ATTACHMENT:----OTAzNTI3Mjk5NDk3ODUyMSA3MzEzMDIzMzgzMjk0NzUxIDY2NzIwODUxNDk1OTc3MTI=