java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
stincmale.server.ExternallyVisibleException
- All Implemented Interfaces:
Serializable
public class ExternallyVisibleException extends RuntimeException
This
RuntimeException
is intended to provide a error message
that may be made visible outside the application.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ExternallyVisibleException(String externalMessage)
ExternallyVisibleException(String message, String externalMessage)
ExternallyVisibleException(String externalMessage, Throwable cause)
ExternallyVisibleException(String message, Throwable cause, String externalMessage)
-
Method Summary
Modifier and Type Method Description String
getExternalMessage()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExternallyVisibleException
- Parameters:
externalMessage
- Message that may be made visible outside the application.
-
ExternallyVisibleException
- Parameters:
message
- The detail message which is saved for later retrieval by theThrowable.getMessage()
method.externalMessage
- Message that may be made visible outside the application.
-
ExternallyVisibleException
public ExternallyVisibleException(@Nullable String message, @Nullable Throwable cause, String externalMessage)- Parameters:
message
- The detail message which is saved for later retrieval by theThrowable.getMessage()
method.cause
- The cause which is saved for later retrieval by theThrowable.getCause()
method.externalMessage
- Message that may be made visible outside the application.
-
ExternallyVisibleException
- Parameters:
externalMessage
- Message that may be made visible outside the application.cause
- The cause which is saved for later retrieval by theThrowable.getCause()
method.
-
-
Method Details
-
getExternalMessage
- Returns:
- Message that may be made visible outside the application.
-