public static int errorCodeFromException(Throwable ex) { if (ex instanceof RSocketException) { return ((RSocketException) ex).errorCode(); } return APPLICATION_ERROR; }
@Override public RejectedSetupException getException(String message, Throwable cause) { return new RejectedSetupException(message, cause); }
@Override public ApplicationErrorException getException(String message, Throwable cause) { return new ApplicationErrorException(message, cause); }
@Override public ConnectionCloseException getException(String message, Throwable cause) { return new ConnectionCloseException(message, cause); }
@Override public RejectedException getException(String message) { return new RejectedException(message); }
@Override public RejectedResumeException getException(String message, Throwable cause) { return new RejectedResumeException(message, cause); }
@Override public ConnectionErrorException getException(String message, Throwable cause) { return new ConnectionErrorException(message, cause); }
@Override public InvalidException getException(String message) { return new InvalidException(message); }
@Override public InvalidSetupException getException(String message, Throwable cause) { return new InvalidSetupException(message, cause); }
@Override public CanceledException getException(String message) { return new CanceledException(message); }
@Override public UnsupportedSetupException getException(String message, Throwable cause) { return new UnsupportedSetupException(message, cause); }
@Override public RejectedSetupException getException(String message) { return new RejectedSetupException(message); }
@Override public ApplicationErrorException getException(String message) { return new ApplicationErrorException(message); }
@Override public ConnectionCloseException getException(String message) { return new ConnectionCloseException(message); }
@Override public RejectedException getException(String message, Throwable cause) { return new RejectedException(message, cause); }
@Override public RejectedResumeException getException(String message) { return new RejectedResumeException(message); }
@Override public ConnectionErrorException getException(String message) { return new ConnectionErrorException(message); }
@Override public InvalidException getException(String message, Throwable cause) { return new InvalidException(message, cause); }
@Override public InvalidSetupException getException(String message) { return new InvalidSetupException(message); }
@Override public CanceledException getException(String message, Throwable cause) { return new CanceledException(message, cause); }