public class RSocketErrorException extends RuntimeException
Constructor and Description |
---|
RSocketErrorException(int errorCode,
String message)
Constructor with a protocol error code and a message.
|
RSocketErrorException(int errorCode,
String message,
Throwable cause)
Alternative to
RSocketErrorException(int, String) with a root cause. |
Modifier and Type | Method and Description |
---|---|
int |
errorCode()
Return the RSocket error code
represented by this exception
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public RSocketErrorException(int errorCode, String message)
errorCode
- the RSocket protocol error codemessage
- error explanationpublic RSocketErrorException(int errorCode, String message, @Nullable Throwable cause)
RSocketErrorException(int, String)
with a root cause.errorCode
- the RSocket protocol error codemessage
- error explanationcause
- a root cause for the errorpublic int errorCode()