public abstract class CodedException extends OwsExceptionReport
| 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, setVersionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CodedException(ExceptionCode code)
public final ExceptionCode getCode()
public final String getLocator()
public final String getMessage()
getMessage in class OwsExceptionReportpublic final boolean hasMessage()
public final List<CodedException> getExceptions()
getExceptions in class OwsExceptionReportpublic final CodedException at(String locator)
public final CodedException at(Enum<?> locator)
public final CodedException withMessage(String message, Object... args)
message - the message formatargs - the optional formatting argumentsString.format(java.lang.String, java.lang.Object[])public final CodedException causedBy(Throwable exception)
Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.