Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider.components
Class OwsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.esri.gpt.server.csw.provider.components.OwsException
All Implemented Interfaces:
Serializable

public class OwsException
extends RuntimeException

An OGC-OWS related exception.

See Also:
Serialized Form

Field Summary
static String OWSCODE_InvalidFormat
          "InvalidFormat" - Request specifies a Format not offered by this server.
static String OWSCODE_InvalidParameterValue
          "InvalidParameterValue" - Request contains an invalid parameter value.
static String OWSCODE_MissingParameterValue
          "MissingParameterValue" - Request does not include a parameter value, and this server did not declare a default value for that parameter.
static String OWSCODE_NoApplicableCode
          "NoApplicableCode" - A code representing this exception has not been defined.
static String OWSCODE_OperationNotSupported
          "OperationNotSupported" - Request is for an operation that is not supported by this server.
static String OWSCODE_VersionNegotiationFailed
          "VersionNegotiationFailed" - List of versions in "acceptVersions" parameter value did not include any version supported by this server.
 
Constructor Summary
OwsException(String text)
          Construct based upon an error message.
OwsException(String code, String locator, String text)
          Construct based upon a code, a locator and a text message.
OwsException(String text, Throwable cause)
          Construct based upon an error message and a cause.
OwsException(Throwable cause)
          Construct based upon a cause.
 
Method Summary
 String getCode()
          Gets the code.
 String getLocator()
          Gets the locator.
 String getMessage()
          Gets the message associated with this exception.
 String getReport()
          Creation an OWS ExceptionReport string (XML).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

OWSCODE_InvalidFormat

public static final String OWSCODE_InvalidFormat
"InvalidFormat" - Request specifies a Format not offered by this server.

See Also:
Constant Field Values

OWSCODE_InvalidParameterValue

public static final String OWSCODE_InvalidParameterValue
"InvalidParameterValue" - Request contains an invalid parameter value.

See Also:
Constant Field Values

OWSCODE_MissingParameterValue

public static final String OWSCODE_MissingParameterValue
"MissingParameterValue" - Request does not include a parameter value, and this server did not declare a default value for that parameter.

See Also:
Constant Field Values

OWSCODE_NoApplicableCode

public static final String OWSCODE_NoApplicableCode
"NoApplicableCode" - A code representing this exception has not been defined.

See Also:
Constant Field Values

OWSCODE_OperationNotSupported

public static final String OWSCODE_OperationNotSupported
"OperationNotSupported" - Request is for an operation that is not supported by this server.

See Also:
Constant Field Values

OWSCODE_VersionNegotiationFailed

public static final String OWSCODE_VersionNegotiationFailed
"VersionNegotiationFailed" - List of versions in "acceptVersions" parameter value did not include any version supported by this server.

See Also:
Constant Field Values
Constructor Detail

OwsException

public OwsException(String code,
                    String locator,
                    String text)
Construct based upon a code, a locator and a text message.

Parameters:
code - the error code
locator - the locator
text - the error message

OwsException

public OwsException(String text)
Construct based upon an error message.

Parameters:
text - the error message

OwsException

public OwsException(Throwable cause)
Construct based upon a cause.

Parameters:
cause - the cause

OwsException

public OwsException(String text,
                    Throwable cause)
Construct based upon an error message and a cause.

Parameters:
text - the error message
cause - the cause
Method Detail

getCode

public String getCode()
Gets the code.

Returns:
the code

getLocator

public String getLocator()
Gets the locator.

Returns:
the locator

getMessage

public String getMessage()
Gets the message associated with this exception.

Overrides:
getMessage in class Throwable
Returns:
the error message

getReport

public String getReport()
Creation an OWS ExceptionReport string (XML).

Returns:
the exception report string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.