Closed luciuz closed 7 years ago
Hello!
How to handle all exceptions and send response with json-rpc-2.0 format with code 200? For example, exceptions from the Request?
try { $classInstance->method1(); $classInstance->method2(); ..... } catch (Exception $e) { throw new \JsonRpc2\Exception('General message', \JsonRpc2\Exception::INTERNAL_ERROR); }
try {
$classInstance->method1();
$classInstance->method2();
.....
} catch (Exception $e) {
throw new \JsonRpc2\Exception('General message', \JsonRpc2\Exception::INTERNAL_ERROR);
}
Hello!
How to handle all exceptions and send response with json-rpc-2.0 format with code 200? For example, exceptions from the Request?