org.deegree_impl.services
Class OGCWebServiceException_Impl
java.lang.Object
org.deegree_impl.services.OGCWebServiceException_Impl
- All Implemented Interfaces:
- Marshallable, OGCWebServiceException
- public class OGCWebServiceException_Impl
- extends java.lang.Object
- implements OGCWebServiceException, Marshallable
A web XXX server has to handle two classes of errors; exceptions that are generated
during the processing of a request (such as parsing the request) and exceptions that
are generated during the execution of a request (such as a transaction failure). This
section deals with exceptions generated during the processing of a request.
Exceptions encountered during request execution are dealt with in subsequent sections.
In the event that a web feature server encounters an error while processing a request, it
shall generate an XML document indicating that an error has occurred.
The <OGCWebServiceException> tag can delimit one or more exception.details.
Individual exceptions are delimited using the <Exception> tag.
The optional <Locator%gt; element is used to indicate where an
exception was encountered. A number of elements defined in this
document include a handle attribute that can be used to uniquely
identify an element. If such a handle exists, its value would be
reported using the element. If a handle attribute does not
exist or is not defined, then the web XXX server can attempt to
locate the error using other means such as line numbers, etc...
The <Message> element is used to delimit any messages associated
with an exception
-----------------------------------------------------------------------
- Version:
- $Revision: 1.10 $ $Date: 2004/03/11 16:28:45 $
- Author:
- Katharina Lupp Katharina Lupp
Field Summary |
private java.lang.String |
locator
|
private java.lang.String |
message
|
Method Summary |
java.lang.String |
exportAsXML()
export the exception message and locator as OGC WFS conform
XML document. |
java.lang.String |
getLocator()
returns the class/service that has caused the exception |
java.lang.String |
getMessage()
returns the error message |
void |
setLocator(java.lang.String locator)
sets the class/service that has caused the exception |
void |
setMessage(java.lang.String message)
sets the error message |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
locator
private java.lang.String locator
message
private java.lang.String message
OGCWebServiceException_Impl
public OGCWebServiceException_Impl(java.lang.String locator,
java.lang.String message)
- constructor
OGCWebServiceException_Impl
public OGCWebServiceException_Impl(org.w3c.dom.Document doc)
- constructor
getLocator
public java.lang.String getLocator()
- returns the class/service that has caused the exception
- Specified by:
getLocator
in interface OGCWebServiceException
setLocator
public void setLocator(java.lang.String locator)
- sets the class/service that has caused the exception
getMessage
public java.lang.String getMessage()
- returns the error message
- Specified by:
getMessage
in interface OGCWebServiceException
setMessage
public void setMessage(java.lang.String message)
- sets the error message
exportAsXML
public java.lang.String exportAsXML()
- export the exception message and locator as OGC WFS conform
XML document.
- Specified by:
exportAsXML
in interface Marshallable
- Returns:
- XML-representation of this object
toString
public java.lang.String toString()