org.vfny.geoserver.responses.wfs
Class WfsTransactionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.vfny.geoserver.ServiceException
              extended byorg.vfny.geoserver.WfsException
                  extended byorg.vfny.geoserver.responses.wfs.WfsTransactionException
All Implemented Interfaces:
java.io.Serializable

public class WfsTransactionException
extends WfsException

This exception can turn itself into the appropriate WFS_TransactionResponse xml, allowing transaction classes to throw exceptions that can be reported back to the clients.

See Also:
Serialized Form

Field Summary
protected  java.lang.String handle
          handle of the transaction request
protected  java.lang.Exception standardException
          the standard exception that was thrown
 
Fields inherited from class org.vfny.geoserver.ServiceException
code, locator, preMessage
 
Constructor Summary
WfsTransactionException()
          Empty constructor.
WfsTransactionException(java.lang.Exception e, java.lang.String preMessage, java.lang.String locator)
          Constructor for an exception, messages and handles.
WfsTransactionException(java.lang.String message)
          Constructor for message and handle.
WfsTransactionException(java.lang.String message, java.lang.String locator)
          DOCUMENT ME!
WfsTransactionException(java.lang.String message, java.lang.String locator, java.lang.String handle)
          DOCUMENT ME!
WfsTransactionException(java.lang.Throwable cause)
          Constructor for an exception and a handle.
 
Method Summary
 java.lang.String getXmlResponse(Request gs)
          Returns a WFS_TransactionResponse xml string indicating the failure.
 void setHandle(java.lang.String handle)
          sets the handle, can be used when the initial handle is wrong.
 
Methods inherited from class org.vfny.geoserver.ServiceException
getXmlMessage, getXmlResponse, getXmlResponse, isEmpty, setCode
 
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

standardException

protected java.lang.Exception standardException
the standard exception that was thrown


handle

protected java.lang.String handle
handle of the transaction request

Constructor Detail

WfsTransactionException

public WfsTransactionException()
Empty constructor.


WfsTransactionException

public WfsTransactionException(java.lang.String message)
Constructor for message and handle.

Parameters:
message - indicates to the user what went wrong.

WfsTransactionException

public WfsTransactionException(java.lang.Throwable cause)
Constructor for an exception and a handle.

Parameters:
cause - indicates to the user what went wrong.

WfsTransactionException

public WfsTransactionException(java.lang.String message,
                               java.lang.String locator)
DOCUMENT ME!

Parameters:
message - indicates to the user what went wrong.
locator - The message for the .

WfsTransactionException

public WfsTransactionException(java.lang.String message,
                               java.lang.String locator,
                               java.lang.String handle)
DOCUMENT ME!

Parameters:
message - indicates to the user what went wrong.
locator - The message for the .
handle - the string of the transaction that failed.

WfsTransactionException

public WfsTransactionException(java.lang.Exception e,
                               java.lang.String preMessage,
                               java.lang.String locator)
Constructor for an exception, messages and handles.

Parameters:
e - the root exception.
preMessage - more information about exception.
locator - indicates to the user what went wrong.
Method Detail

setHandle

public void setHandle(java.lang.String handle)
sets the handle, can be used when the initial handle is wrong.

Parameters:
handle - DOCUMENT ME!

getXmlResponse

public java.lang.String getXmlResponse(Request gs)
Returns a WFS_TransactionResponse xml string indicating the failure.

Parameters:
gs - DOCUMENT ME!
Returns:
DOCUMENT ME!