org.deegree.protocol.ows.exception
Class OWSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.deegree.protocol.ows.exception.OWSException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SOAPException

public class OWSException
extends Exception

OGC Web Service Exception for all OGC service related errors.

Version:
$Revision: 31699 $, $Date: 2011-08-31 13:29:54 +0200 (Wed, 31 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
static String CURRENT_UPDATE_SEQUENCE
          what the text says
static String INVALID_CRS
           
static String INVALID_DATE
          the date is not parsable
static String INVALID_FORMAT
          the parameter value of the format parameter is invalid
static String INVALID_PARAMETER_VALUE
          the parameter value is invalid
static String INVALID_POINT
           
static String INVALID_SRS
          what the text says
static String INVALID_UPDATE_SEQUENCE
          updateSequence value is greater than the current value
static String LAYER_NOT_DEFINED
          the layer is not defined
static String MISSING_PARAMETER_VALUE
          a required parameter is missing
static String NO_APPLICABLE_CODE
          exception code for all not known exceptions
static String OPERATION_NOT_SUPPORTED
          the requested operation is not supported
static String OPTION_NOT_SUPPORTED
          the requested option is not supported
static String STYLE_NOT_DEFINED
          what the text says
static String VERSION_NEGOTIATION_FAILED
          server doesn't support any of the requested AcceptVersions
 
Constructor Summary
OWSException(InvalidParameterValueException cause)
          Creates a new OWSException from an InvalidParameterValueException.
OWSException(List<String> messages, String exceptionCode, String locator)
           
OWSException(MissingParameterException cause)
          Creates a new OWSException from an MissingParameterException.
OWSException(String message, String exceptionCode)
          Create a new OWSException.
OWSException(String message, String exceptionCode, String locator)
          Create a new OWSException.
OWSException(String message, Throwable cause, String exceptionCode)
          Create a new OWSException.
 
Method Summary
 String getExceptionCode()
           
 String getLocator()
           
 List<String> getMessages()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING_PARAMETER_VALUE

public static final String MISSING_PARAMETER_VALUE
a required parameter is missing

See Also:
Constant Field Values

INVALID_PARAMETER_VALUE

public static final String INVALID_PARAMETER_VALUE
the parameter value is invalid

See Also:
Constant Field Values

INVALID_FORMAT

public static final String INVALID_FORMAT
the parameter value of the format parameter is invalid

See Also:
Constant Field Values

LAYER_NOT_DEFINED

public static final String LAYER_NOT_DEFINED
the layer is not defined

See Also:
Constant Field Values

STYLE_NOT_DEFINED

public static final String STYLE_NOT_DEFINED
what the text says

See Also:
Constant Field Values

INVALID_SRS

public static final String INVALID_SRS
what the text says

See Also:
Constant Field Values

INVALID_CRS

public static final String INVALID_CRS
See Also:
Constant Field Values

INVALID_POINT

public static final String INVALID_POINT
See Also:
Constant Field Values

VERSION_NEGOTIATION_FAILED

public static final String VERSION_NEGOTIATION_FAILED
server doesn't support any of the requested AcceptVersions

See Also:
Constant Field Values

INVALID_UPDATE_SEQUENCE

public static final String INVALID_UPDATE_SEQUENCE
updateSequence value is greater than the current value

See Also:
Constant Field Values

CURRENT_UPDATE_SEQUENCE

public static final String CURRENT_UPDATE_SEQUENCE
what the text says

See Also:
Constant Field Values

OPERATION_NOT_SUPPORTED

public static final String OPERATION_NOT_SUPPORTED
the requested operation is not supported

See Also:
Constant Field Values

OPTION_NOT_SUPPORTED

public static final String OPTION_NOT_SUPPORTED
the requested option is not supported

See Also:
Constant Field Values

INVALID_DATE

public static final String INVALID_DATE
the date is not parsable

See Also:
Constant Field Values

NO_APPLICABLE_CODE

public static final String NO_APPLICABLE_CODE
exception code for all not known exceptions

See Also:
Constant Field Values
Constructor Detail

OWSException

public OWSException(String message,
                    String exceptionCode)
Create a new OWSException.

Parameters:
message - the exception text
exceptionCode - defining a machine readable code.

OWSException

public OWSException(String message,
                    Throwable cause,
                    String exceptionCode)
Create a new OWSException.

Parameters:
message - the exception text
cause - of this exception to happen.
exceptionCode - defining a machine readable code.

OWSException

public OWSException(String message,
                    String exceptionCode,
                    String locator)
Create a new OWSException.

Parameters:
message - the exception text
exceptionCode - defining a machine readable code.
locator - the exception location

OWSException

public OWSException(List<String> messages,
                    String exceptionCode,
                    String locator)

OWSException

public OWSException(InvalidParameterValueException cause)
Creates a new OWSException from an InvalidParameterValueException.

Parameters:
cause - causing exception

OWSException

public OWSException(MissingParameterException cause)
Creates a new OWSException from an MissingParameterException.

Parameters:
cause - causing exception
Method Detail

getLocator

public final String getLocator()
Returns:
the locator

getExceptionCode

public final String getExceptionCode()

getMessages

public final List<String> getMessages()


Copyright © 2011. All Rights Reserved.