public class KeepException extends java.lang.Exception implements KeepExceptionType
Exception that gets thrown when logic requirements of the keep server aren’t met. Mainly used to distinguish from code things breaking Should not be called / instantiated directly Base class for the Rest of KeepException*
Modifier | Constructor and Description |
---|---|
protected |
KeepException(java.lang.String message,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
static KeepException |
fromJson(io.vertx.core.json.JsonObject source) |
static KeepException |
fromThrowable(java.lang.Throwable source) |
static KeepException |
get(java.lang.String msg,
java.lang.Object... params) |
ErrorClassification |
getKeepErrorType()
The type of error the Exception represents
|
org.apache.logging.log4j.Level |
getLevel() |
java.lang.String |
getLocation() |
static KeepException |
status(java.lang.String msg,
ErrorClassification classification) |
io.vertx.core.json.JsonObject |
toJson() |
protected KeepException(java.lang.String message, java.lang.Object... args)
message
- args
- Arguments that are passed into the format functionpublic static KeepException fromJson(io.vertx.core.json.JsonObject source)
source
- public static KeepException fromThrowable(java.lang.Throwable source)
source
- public static KeepException get(java.lang.String msg, java.lang.Object... params)
msg
- params
- public static KeepException status(java.lang.String msg, ErrorClassification classification)
msg
- classification
- public ErrorClassification getKeepErrorType()
KeepExceptionType
The type of error the Exception represents
getKeepErrorType
in interface KeepExceptionType
public org.apache.logging.log4j.Level getLevel()
getLevel
in interface KeepExceptionType
public java.lang.String getLocation()
public io.vertx.core.json.JsonObject toJson()