Providerpublic class ThroawableExceptionMapper implements ExceptionMapper<Throwable> { public Response toResponse(Throwablethrowable) {
//Wrapping to RestError
考虑下面的示例代码片段: * @throws \DomainExceptionpublic function doFoo() try { // This code could throw a SomeOtherException. // and a \DomainException should be th