public class TransportException extends RuntimeException
Constructor and Description |
---|
TransportException(TransportErrorCode errorCode,
ExceptionMessage exceptionMessage) |
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, setStackTrace
public TransportException(TransportErrorCode errorCode, ExceptionMessage exceptionMessage)
public static TransportException fromCodeAndMessage(TransportErrorCode errorCode, ExceptionMessage exceptionMessage)
public TransportErrorCode errorCode()
public ExceptionMessage exceptionMessage()