public abstract class OwsExceptionReport extends Exception
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private HTTPStatus |
status |
private String |
version |
Constructor and Description |
---|
OwsExceptionReport() |
Modifier and Type | Method and Description |
---|---|
abstract List<? extends CodedException> |
getExceptions() |
String |
getMessage() |
String |
getNamespace() |
HTTPStatus |
getStatus() |
String |
getVersion()
Get SOS version
|
boolean |
hasStatus() |
OwsExceptionReport |
setStatus(HTTPStatus status)
Sets the HTTP response code for this
OwsExceptionReport . |
OwsExceptionReport |
setVersion(String version)
Set SOS version
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private HTTPStatus status
private String version
public abstract List<? extends CodedException> getExceptions()
public OwsExceptionReport setVersion(String version)
version
- the version to setpublic String getVersion()
public String getNamespace()
public String getMessage()
getMessage
in class Throwable
public HTTPStatus getStatus()
OwsExceptionReport
orgetExceptions().get(0).getStatus()
if it is not set and
getExceptions().get(0) != this
.public boolean hasStatus()
OwsExceptionReport
or any sub exception is availablepublic OwsExceptionReport setStatus(HTTPStatus status)
OwsExceptionReport
.status
- the codeCopyright © 2012-2015 52north.org. All Rights Reserved.