Class OwsExceptionReport
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.n52.shetland.ogc.ows.exception.OwsExceptionReport
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodedException,CompositeOwsException
Implementation of the OWS service exception. The exception codes are defined according the
OGC Web Service Common Specification
1.1.0
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<? extends CodedException> final HTTPStatusfinal StringGet service versionfinal booleanfinal OwsExceptionReportsetStatus(HTTPStatus status) Sets the HTTP response code for thisOwsExceptionReport.final OwsExceptionReportsetVersion(String version) Set service versionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OwsExceptionReport
public OwsExceptionReport()
-
-
Method Details
-
getExceptions
- Returns:
- Returns the ExceptionTypes of this exception
-
setVersion
Set service version- Parameters:
version- the version to set- Returns:
- this
-
getVersion
Get service version- Returns:
- service version
-
getNamespace
-
getMessage
- Overrides:
getMessagein classThrowable
-
getStatus
- Returns:
- the HTTP response code of this
OwsExceptionReportor
getExceptions().get(0).getStatus()if it is not set andgetExceptions().get(0) != this.
-
hasStatus
public final boolean hasStatus()- Returns:
- true, if a HTTP response code for this
OwsExceptionReportor any sub exception is available
-
setStatus
Sets the HTTP response code for thisOwsExceptionReport.- Parameters:
status- the code- Returns:
- this (for method chaining)
-