public abstract class CodedException extends OwsExceptionReport
Modifier and Type | Field and Description |
---|---|
private ExceptionCode |
code |
private List<CodedException> |
exceptions |
private String |
locator |
private String |
message |
private static long |
serialVersionUID |
Constructor and Description |
---|
CodedException(ExceptionCode code) |
Modifier and Type | Method and Description |
---|---|
CodedException |
at(Enum<?> locator) |
CodedException |
at(String locator) |
CodedException |
causedBy(Throwable exception) |
ExceptionCode |
getCode() |
List<CodedException> |
getExceptions() |
String |
getLocator() |
String |
getMessage() |
boolean |
hasMessage() |
CodedException |
withMessage(String message,
Object... args) |
getNamespace, getStatus, getVersion, hasStatus, setStatus, setVersion
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private final List<CodedException> exceptions
private final ExceptionCode code
private String locator
private String message
public CodedException(ExceptionCode code)
public ExceptionCode getCode()
public String getLocator()
public String getMessage()
getMessage
in class OwsExceptionReport
public boolean hasMessage()
public List<CodedException> getExceptions()
getExceptions
in class OwsExceptionReport
public CodedException at(String locator)
public CodedException at(Enum<?> locator)
public CodedException withMessage(String message, Object... args)
message
- the message formatargs
- the optional formatting argumentsString.format(java.lang.String, java.lang.Object[])
public CodedException causedBy(Throwable exception)
Copyright © 2012-2015 52north.org. All Rights Reserved.