@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }
@Override public @NotNull NextAction processException(Throwable t) { final Packet response = Fiber.current().getPacket(); ThrowableContainerPropertySet tc = response.getSatellite(ThrowableContainerPropertySet.class); if (tc == null) { tc = new ThrowableContainerPropertySet(t); response.addSatellite(tc); } else if (t != tc.getThrowable()) { // This is a pathological case where an exception happens after a previous exception. // Make sure you report the latest one. tc.setThrowable(t); } return processResponse(response.endpoint.createServiceResponseForException(tc, response, soapVersion, wsdlPort, response.endpoint.getSEIModel(), binding)); }