|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.n52.oxf.owsCommon.OwsExceptionReport
public class OwsExceptionReport
Implementation of the ows service exception. The exception codes are defined according the ows common spec. version 1.0
| Nested Class Summary | |
|---|---|
static class |
OwsExceptionReport.ExceptionCode
ExceptionCodes as defined in the OWS Common Implementation Specification 0.3.0 |
static class |
OwsExceptionReport.ExceptionLevel
Exception levels |
| Constructor Summary | |
|---|---|
OwsExceptionReport()
standard constructor without parameters, sets the ExceptionLevel on PlainExceptions |
|
OwsExceptionReport(OwsExceptionReport.ExceptionLevel excLevelIn)
´constructor with exceptionLevel as parameter |
|
OwsExceptionReport(String message,
Throwable cause)
constructor with message and cause as parameters |
|
OwsExceptionReport(Throwable cause)
constructor with cause as parameter |
|
| Method Summary | |
|---|---|
void |
addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
Exception e)
adds a coded Exception to this service exception with code, locator and the exception itself as parameters |
void |
addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
String message)
adds a coded Exception with ExceptionCode,locator and a single String message to this exception |
void |
addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
String[] messages)
adds a coded exception to this exception with code, locator and messages as parameters |
void |
addServiceException(OwsExceptionReport seIn)
adds a ServiceException to this exception |
boolean |
containsCode(OwsExceptionReport.ExceptionCode ec)
checks whether the ExceptionCode parameter is contain in this exception |
boolean |
containsExceptions()
checks whether this service exception contains another exception |
net.opengis.ows.x11.ExceptionReportDocument |
getDocument()
|
ArrayList<net.opengis.ows.x11.ExceptionType> |
getExceptions()
|
| 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 |
|---|
public OwsExceptionReport()
public OwsExceptionReport(String message,
Throwable cause)
message - String containing the message of this exceptioncause - Throwable cause of this exceptionpublic OwsExceptionReport(Throwable cause)
cause - Throwable cause of this exceptionpublic OwsExceptionReport(OwsExceptionReport.ExceptionLevel excLevelIn)
excLevelIn - | Method Detail |
|---|
public ArrayList<net.opengis.ows.x11.ExceptionType> getExceptions()
public void addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
String[] messages)
code - ExceptionCode of the added exceptionlocator - String locator of this exceptionmessages - String[] messages of this exceptionpublic void addServiceException(OwsExceptionReport seIn)
seIn - ServiceException which should be addedpublic boolean containsCode(OwsExceptionReport.ExceptionCode ec)
ec - ExceptionCode which should be checked
public void addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
Exception e)
code - ExceptionCode of the added exceptionlocator - String locator of the added exceptione - Exception which should be addedpublic net.opengis.ows.x11.ExceptionReportDocument getDocument()
public boolean containsExceptions()
public void addCodedException(OwsExceptionReport.ExceptionCode code,
String locator,
String message)
code - Exception code of the exception to addlocator - String locator of the exception to addmessage - String message of the exception to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||