|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.vfny.geoserver.ServiceException
Represents a standard OGC service exception. Able to turn itself into the proper xml response.
JG - here is my guess on what the parameters do:
[?xml version="1.0" ?
[ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc SchemaBaseUrl wfs/1.0.0/OGC-exception.xsd"]
[ServiceException code="code"
locator="locator"]
preMessage:getMessage()
stack trace
[/ServiceException]
[/ServiceExceptionReport]
Where:
Java Exception have recently developed the ability to contain other exceptions. By calling initCause on your ServiceConfig Exception you can get the real exception included in the stacktrace above.
Field Summary | |
protected java.lang.String |
code
Diagnostic code |
protected java.lang.String |
locator
full classpath of originating GeoServer class |
protected java.lang.String |
preMessage
message inserted by GeoServer as to what it thinks happened |
Constructor Summary | |
ServiceException()
Empty constructor. |
|
ServiceException(java.lang.String message)
Empty constructor. |
|
ServiceException(java.lang.String message,
java.lang.String locator)
Empty constructor. |
|
ServiceException(java.lang.String message,
java.lang.Throwable cause)
This should be the most used entry point. |
|
ServiceException(java.lang.Throwable e)
Empty constructor. |
|
ServiceException(java.lang.Throwable e,
java.lang.String preMessage,
java.lang.String locator)
DOCUMENT ME! |
Method Summary | |
java.lang.String |
getXmlMessage(boolean printStackTrace)
gets the message, encoding it with the proper escaped xml characters. |
java.lang.String |
getXmlResponse()
DOCUMENT ME! |
java.lang.String |
getXmlResponse(boolean printStackTrace)
Return request type. |
protected boolean |
isEmpty(java.lang.String testString)
DOCUMENT ME! |
void |
setCode(java.lang.String code)
Assigns a diagnostic code to this exception. |
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 |
protected java.lang.String preMessage
protected java.lang.String locator
protected java.lang.String code
Constructor Detail |
public ServiceException()
public ServiceException(java.lang.String message)
message
- The message for the .public ServiceException(java.lang.String message, java.lang.Throwable cause)
message
- User messagecause
- The origional exception that caused failurepublic ServiceException(java.lang.Throwable e)
e
- The message for the .public ServiceException(java.lang.String message, java.lang.String locator)
message
- The message for the .locator
- The message for the .public ServiceException(java.lang.Throwable e, java.lang.String preMessage, java.lang.String locator)
e
- The message for the .preMessage
- The message to tack on the front.locator
- The message for the .Method Detail |
public void setCode(java.lang.String code)
code
- The diagnostic code.protected boolean isEmpty(java.lang.String testString)
testString
- DOCUMENT ME!
public java.lang.String getXmlResponse()
public java.lang.String getXmlMessage(boolean printStackTrace)
printStackTrace
- set to true if the full stack trace
should be returned to client apps.
public java.lang.String getXmlResponse(boolean printStackTrace)
printStackTrace
- whether the stack trace should be included.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |