Package org.geotools.ows
Class ServiceException
- Object
-
- Throwable
-
- Exception
-
- SAXException
-
- ServiceException
-
- All Implemented Interfaces:
Serializable
public class ServiceException extends SAXException
- Author:
- dzwiers
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwablecausestatic StringCURRENT_UPDATE_SEQUENCEValue of (optional) UpdateSequence parameter in GetCapabilities request is equal to current value of Capabilities XML update sequence number.static StringINVALID_CRSRequest contains a CRS not offered by the server for one or more of the Layers in the request.static StringINVALID_DIMENSION_VALUERequest contains an invalid sample dimension value.static StringINVALID_FORMATRequest contains a Format not offered by the service instancestatic StringINVALID_SRSRequest contains an SRS not offered by the service instance for one or more of the Layers in the request.static StringINVALID_UPDATE_SEQUENCEValue of (optional) UpdateSequence parameter in GetCapabilities request is greater than current value of Capabilities XML update sequence number.static StringLAYER_NOT_DEFINEDRequest is for a Layer not offered by the service instance.static StringLAYER_NOT_QUERYABLEGetFeatureInfo request is applied to a Layer which is not declared queryable.static StringMISSING_DIMENSION_VALUERequest does not include a sample dimension value, and the service instance did not declare a default value for that dimension.static StringOPERATION_NOT_SUPPORTEDRequest is for an optional operation that is not supported by the server.static StringSTYLE_NOT_DEFINEDRequest is for a Layer in a Style not offered by the service instance.
-
Constructor Summary
Constructors Constructor Description ServiceException(String msg)ServiceException(String msg, String code)ServiceException(String msg, String code, String locator)Passes the message to the parent, or the code if the message is null.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()StringgetCode()ExceptiongetException()StringgetLocator()ServiceExceptiongetNext()ThrowableinitCause(Throwable cause)voidsetNext(ServiceException next)-
Methods inherited from class SAXException
getMessage, toString
-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
INVALID_FORMAT
public static final String INVALID_FORMAT
Request contains a Format not offered by the service instance- See Also:
- Constant Field Values
-
INVALID_SRS
public static final String INVALID_SRS
Request contains an SRS not offered by the service instance for one or more of the Layers in the request.- See Also:
- Constant Field Values
-
INVALID_CRS
public static final String INVALID_CRS
Request contains a CRS not offered by the server for one or more of the Layers in the request.- See Also:
- Constant Field Values
-
LAYER_NOT_DEFINED
public static final String LAYER_NOT_DEFINED
Request is for a Layer not offered by the service instance.- See Also:
- Constant Field Values
-
STYLE_NOT_DEFINED
public static final String STYLE_NOT_DEFINED
Request is for a Layer in a Style not offered by the service instance.- See Also:
- Constant Field Values
-
LAYER_NOT_QUERYABLE
public static final String LAYER_NOT_QUERYABLE
GetFeatureInfo request is applied to a Layer which is not declared queryable.- See Also:
- Constant Field Values
-
CURRENT_UPDATE_SEQUENCE
public static final String CURRENT_UPDATE_SEQUENCE
Value of (optional) UpdateSequence parameter in GetCapabilities request is equal to current value of Capabilities XML update sequence number.- See Also:
- Constant Field Values
-
INVALID_UPDATE_SEQUENCE
public static final String INVALID_UPDATE_SEQUENCE
Value of (optional) UpdateSequence parameter in GetCapabilities request is greater than current value of Capabilities XML update sequence number.- See Also:
- Constant Field Values
-
MISSING_DIMENSION_VALUE
public static final String MISSING_DIMENSION_VALUE
Request does not include a sample dimension value, and the service instance did not declare a default value for that dimension.- See Also:
- Constant Field Values
-
INVALID_DIMENSION_VALUE
public static final String INVALID_DIMENSION_VALUE
Request contains an invalid sample dimension value.- See Also:
- Constant Field Values
-
OPERATION_NOT_SUPPORTED
public static final String OPERATION_NOT_SUPPORTED
Request is for an optional operation that is not supported by the server.- See Also:
- Constant Field Values
-
cause
protected Throwable cause
-
-
Constructor Detail
-
ServiceException
public ServiceException(String msg)
- Parameters:
msg- Message- See Also:
SAXException(java.lang.String)
-
ServiceException
public ServiceException(String msg, String code, String locator)
Passes the message to the parent, or the code if the message is null.- Parameters:
msg- Messagecode- Error Codelocator- Error Location- See Also:
SAXException(java.lang.String)
-
-
Method Detail
-
getCause
public Throwable getCause()
- Overrides:
getCausein classSAXException
-
getException
public Exception getException()
- Overrides:
getExceptionin classSAXException
-
getCode
public String getCode()
- Returns:
- String the error code, such as 404-Not Found
-
getLocator
public String getLocator()
- Returns:
- String the location of the error, useful for parse errors
-
getNext
public ServiceException getNext()
-
setNext
public void setNext(ServiceException next)
-
-