public class PetascopeException
extends java.lang.Exception
Modifier | Constructor and Description |
---|---|
|
PetascopeException(ExceptionCode exceptionCode)
Construct a new WCS exception
|
|
PetascopeException(ExceptionCode exceptionCode,
java.lang.Exception ex)
Construct a new WCS exception
|
|
PetascopeException(ExceptionCode exceptionCode,
java.lang.String exceptionText)
Construct a new WCS exception
|
|
PetascopeException(ExceptionCode exceptionCode,
java.lang.String exceptionText,
java.lang.Exception ex)
Construct a new WCS exception
|
protected |
PetascopeException(ExceptionCode exceptionCode,
java.lang.String exceptionText,
java.lang.Exception ex,
java.lang.String version,
java.lang.String language)
Construct a new WCS exception
|
Modifier and Type | Method and Description |
---|---|
void |
appendExceptionText(java.lang.String msg)
Adds text to this exception's detail message.
|
ExceptionCode |
getExceptionCode() |
java.lang.String |
getExceptionText() |
java.lang.String |
getMessage() |
net.opengis.ows.v_1_0_0.ExceptionReport |
getReport()
Retrieves a data structure that can be later marshalled into a XML
ExceptionReport" document.
|
java.lang.String |
toString() |
public PetascopeException(ExceptionCode exceptionCode)
exceptionCode
- exception code, if it's null then
ExceptionCode.UnknownError
is used.public PetascopeException(ExceptionCode exceptionCode, java.lang.String exceptionText)
exceptionCode
- exception code, if it's null then
ExceptionCode.UnknownError
is used.exceptionText
- exception messagepublic PetascopeException(ExceptionCode exceptionCode, java.lang.Exception ex)
exceptionCode
- exception code, if it's null then
ExceptionCode.UnknownError
is used.ex
- original exceptionpublic PetascopeException(ExceptionCode exceptionCode, java.lang.String exceptionText, java.lang.Exception ex)
exceptionCode
- exception code (must not be null)exceptionText
- exception messageex
- original exceptionprotected PetascopeException(ExceptionCode exceptionCode, java.lang.String exceptionText, java.lang.Exception ex, java.lang.String version, java.lang.String language)
exceptionCode
- exception code, if it's null then
ExceptionCode.UnknownError
is used.exceptionText
- exception messageex
- original exceptionversion
- language
- public ExceptionCode getExceptionCode()
public java.lang.String getExceptionText()
public net.opengis.ows.v_1_0_0.ExceptionReport getReport()
public void appendExceptionText(java.lang.String msg)
msg
- public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable