java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bzdev.ejws.EjwsException
- All Implemented Interfaces:
Serializable
EJWS Exception class.
This class is provided so that the method
WebMap.getInfoFromPath(String,String,String,String,WebMap.RequestInfo)
can simply throw an exception to indicate an error. It's caller
will then generate a standard error message and set an appropriate
response status code.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor.EjwsException
(String message) Constructor with a message.EjwsException
(String message, Throwable cause) Constructor with a message and cause.protected
EjwsException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructor with a message and cause, suppression enabled or disabled, and a writable stack trace enabled or disabled.EjwsException
(Throwable cause) Constructor given a cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EjwsException
public EjwsException()Constructor. -
EjwsException
Constructor with a message.- Parameters:
message
- the message
-
EjwsException
Constructor with a message and cause.- Parameters:
message
- the messagecause
- the exception that caused this exception; null if not known
-
EjwsException
protected EjwsException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructor with a message and cause, suppression enabled or disabled, and a writable stack trace enabled or disabled.- Parameters:
message
- the messagecause
- the exception that caused this exception; null if not knownenableSuppression
- true if suppression is enabled; false if it is disabledwritableStackTrace
- true if the stack trace should be writable; false otherwise
-
EjwsException
Constructor given a cause.- Parameters:
cause
- the cause; null if the cause is not known
-