public abstract class OwsExceptionReport
extends java.lang.Exception
| Constructor and Description |
|---|
OwsExceptionReport() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<? extends CodedException> |
getExceptions() |
java.lang.String |
getMessage() |
java.lang.String |
getNamespace() |
HTTPStatus |
getStatus() |
java.lang.String |
getVersion()
Get service version
|
boolean |
hasStatus() |
OwsExceptionReport |
setStatus(HTTPStatus status)
Sets the HTTP response code for this
OwsExceptionReport. |
OwsExceptionReport |
setVersion(java.lang.String version)
Set service version
|
public abstract java.util.List<? extends CodedException> getExceptions()
public final OwsExceptionReport setVersion(java.lang.String version)
version - the version to setpublic final java.lang.String getVersion()
public java.lang.String getNamespace()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic final HTTPStatus getStatus()
OwsExceptionReport orgetExceptions().get(0).getStatus() if it is not set and
getExceptions().get(0) != this.public final boolean hasStatus()
OwsExceptionReport or any sub exception is availablepublic final OwsExceptionReport setStatus(HTTPStatus status)
OwsExceptionReport.status - the codeCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.