public class TransportException extends RuntimeException
| Constructor and Description |
|---|
TransportException(TransportErrorCode errorCode,
ExceptionMessage exceptionMessage) |
TransportException(TransportErrorCode errorCode,
String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
TransportErrorCode |
errorCode()
The error code that should be sent to the transport.
|
ExceptionMessage |
exceptionMessage()
The message that should be sent to the transport.
|
static TransportException |
fromCodeAndMessage(TransportErrorCode errorCode,
ExceptionMessage exceptionMessage) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TransportException(TransportErrorCode errorCode, ExceptionMessage exceptionMessage)
public TransportException(TransportErrorCode errorCode, String message, Throwable cause)
public static TransportException fromCodeAndMessage(TransportErrorCode errorCode, ExceptionMessage exceptionMessage)
public TransportErrorCode errorCode()
public ExceptionMessage exceptionMessage()