public class CustomRSocketException extends RSocketException
| Constructor and Description |
|---|
CustomRSocketException(int errorCode,
String message)
Constructs a new exception with the specified message.
|
CustomRSocketException(int errorCode,
String message,
Throwable cause)
Constructs a new exception with the specified message and cause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
errorCode()
Returns the RSocket error code
represented by this exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CustomRSocketException(int errorCode,
String message)
errorCode - customizable error code. Should be in range [0x00000301-0xFFFFFFFE]message - the messageNullPointerException - if message is nullIllegalArgumentException - if errorCode is out of allowed rangepublic CustomRSocketException(int errorCode,
String message,
Throwable cause)
errorCode - customizable error code. Should be in range [0x00000301-0xFFFFFFFE]message - the messagecause - the cause of this exceptionNullPointerException - if message or cause is nullIllegalArgumentException - if errorCode is out of allowed rangepublic int errorCode()
RSocketExceptionerrorCode in class RSocketException