public abstract class OwsExceptionReport extends Exception
| Constructor and Description |
|---|
OwsExceptionReport() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<? extends CodedException> |
getExceptions() |
String |
getMessage() |
String |
getNamespace() |
HTTPStatus |
getStatus() |
String |
getVersion()
Get service version
|
boolean |
hasStatus() |
OwsExceptionReport |
setStatus(HTTPStatus status)
Sets the HTTP response code for this
OwsExceptionReport. |
OwsExceptionReport |
setVersion(String version)
Set service version
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic abstract List<? extends CodedException> getExceptions()
public final OwsExceptionReport setVersion(String version)
version - the version to setpublic final String getVersion()
public String getNamespace()
public String getMessage()
getMessage in class 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–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.