org.geotools.ows
Class ServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xml.sax.SAXException
              extended byorg.geotools.ows.ServiceException
All Implemented Interfaces:
java.io.Serializable

public class ServiceException
extends org.xml.sax.SAXException

DOCUMENT ME!

Author:
dzwiers
See Also:
Serialized Form

Field Summary
static java.lang.String CURRENT_UPDATE_SEQUENCE
          Value of (optional) UpdateSequence parameter in GetCapabilities request is equal to current value of Capabilities XML update sequence number.
static java.lang.String INVALID_CRS
          Request contains a CRS not offered by the server for one or more of the Layers in the request.
static java.lang.String INVALID_DIMENSION_VALUE
          Request contains an invalid sample dimension value.
static java.lang.String INVALID_FORMAT
          Request contains a Format not offered by the service instance
static java.lang.String INVALID_SRS
          Request contains an SRS not offered by the service instance for one or more of the Layers in the request.
static java.lang.String INVALID_UPDATE_SEQUENCE
          Value of (optional) UpdateSequence parameter in GetCapabilities request is greater than current value of Capabilities XML update sequence number.
static java.lang.String LAYER_NOT_DEFINED
          Request is for a Layer not offered by the service instance.
static java.lang.String LAYER_NOT_QUERYABLE
          GetFeatureInfo request is applied to a Layer which is not declared queryable.
static java.lang.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.
static java.lang.String OPERATION_NOT_SUPPORTED
          Request is for an optional operation that is not supported by the server.
static java.lang.String STYLE_NOT_DEFINED
          Request is for a Layer in a Style not offered by the service instance.
 
Constructor Summary
ServiceException(java.lang.String msg)
           
ServiceException(java.lang.String msg, java.lang.String code)
           
ServiceException(java.lang.String msg, java.lang.String code, java.lang.String locator)
          Passes the message to the parent, or the code if the message is null.
 
Method Summary
 java.lang.String getCode()
           
 java.lang.String getLocator()
           
 ServiceException getNext()
           
 void setNext(ServiceException next)
           
 
Methods inherited from class org.xml.sax.SAXException
getException, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_FORMAT

public static final java.lang.String INVALID_FORMAT
Request contains a Format not offered by the service instance

See Also:
Constant Field Values

INVALID_SRS

public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String INVALID_DIMENSION_VALUE
Request contains an invalid sample dimension value.

See Also:
Constant Field Values

OPERATION_NOT_SUPPORTED

public static final java.lang.String OPERATION_NOT_SUPPORTED
Request is for an optional operation that is not supported by the server.

See Also:
Constant Field Values
Constructor Detail

ServiceException

public ServiceException(java.lang.String msg)
Parameters:
msg - Message
See Also:
SAXException.SAXException(java.lang.String)

ServiceException

public ServiceException(java.lang.String msg,
                        java.lang.String code)

ServiceException

public ServiceException(java.lang.String msg,
                        java.lang.String code,
                        java.lang.String locator)
Passes the message to the parent, or the code if the message is null.

Parameters:
msg - Message
code - Error Code
locator - Error Location
See Also:
SAXException.SAXException(java.lang.String)
Method Detail

getCode

public java.lang.String getCode()
Returns:
String the error code, such as 404-Not Found

getLocator

public java.lang.String getLocator()
Returns:
String the location of the error, useful for parse errors

getNext

public ServiceException getNext()

setNext

public void setNext(ServiceException next)


Copyright © GeoTools. All Rights Reserved.