org.vfny.geoserver
Class WmsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.vfny.geoserver.ServiceException
              extended byorg.vfny.geoserver.WmsException
All Implemented Interfaces:
java.io.Serializable

public class WmsException
extends ServiceException

This defines an exception that can be turned into a valid xml service exception that wms clients will expect. All errors should be wrapped in this before returning to clients.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.vfny.geoserver.ServiceException
code, locator, preMessage
 
Constructor Summary
WmsException()
          Empty constructor.
WmsException(java.lang.String message)
          constructor with exception message
WmsException(java.lang.String message, java.lang.String locator)
          Empty constructor.
WmsException(java.lang.Throwable e)
          Empty constructor.
WmsException(java.lang.Throwable e, java.lang.String preMessage, java.lang.String locator)
          DOCUMENT ME!
 
Method Summary
 java.lang.String getXmlResponse(boolean printStackTrace)
          Return request type.
 
Methods inherited from class org.vfny.geoserver.ServiceException
getXmlMessage, 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
 

Constructor Detail

WmsException

public WmsException()
Empty constructor.


WmsException

public WmsException(java.lang.String message)
constructor with exception message

Parameters:
message - The message for the exception

WmsException

public WmsException(java.lang.Throwable e)
Empty constructor.

Parameters:
e - The message for the .

WmsException

public WmsException(java.lang.String message,
                    java.lang.String locator)
Empty constructor.

Parameters:
message - The message for the .
locator - The message for the .

WmsException

public WmsException(java.lang.Throwable e,
                    java.lang.String preMessage,
                    java.lang.String locator)
DOCUMENT ME!

Parameters:
e - The message for the .
preMessage - The message to tack on the front.
locator - The message for the .
Method Detail

getXmlResponse

public java.lang.String getXmlResponse(boolean printStackTrace)
Return request type.

Overrides:
getXmlResponse in class ServiceException
Parameters:
printStackTrace - whether the stack trace should be included.
Returns:
The ServiceExceptionReport of this error.