public class Forbidden extends ErrorResult
Result.Payload| Modifier and Type | Field and Description |
|---|---|
static Forbidden |
INSTANCE
The static instance of Forbidden result.
|
| Constructor and Description |
|---|
Forbidden() |
Forbidden(int errorCode) |
Forbidden(int errorCode,
String message,
Object... args) |
Forbidden(int errorCode,
Throwable cause) |
Forbidden(int errorCode,
Throwable cause,
String message,
Object... args) |
Forbidden(String message,
Object... args) |
Forbidden(Throwable cause) |
Forbidden(Throwable cause,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static Forbidden |
get()
Returns a static Forbidden instance and set the
Result.payload thread local
with default message. |
static Forbidden |
of(int errorCode)
Returns a static Forbidden instance and set the
Result.payload thread local
with default message. |
static Forbidden |
of(int errorCode,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
static Forbidden |
of(int errorCode,
Throwable cause,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
static Forbidden |
of(String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
static Forbidden |
of(Throwable cause)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
static Forbidden |
of(Throwable cause,
int errorCode)
Returns a static Forbidden instance and set the
Result.payload thread local
with default message. |
static Forbidden |
of(Throwable cause,
int errorCode,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
static Forbidden |
of(Throwable cause,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local
with message specified. |
_localizedErrorMsg, applyMessage, attach, attachment, attachment, defaultMessage, errorCode, getLocalizedMessage, of, of, of, of, of, of, of, toJsonString, toKVStore, toStringapply, applyAfterCommitHandler, applyBeforeCommitHandler, applyStatus, clearThreadLocals, payload, status, status, statusCodedoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final Forbidden INSTANCE
public Forbidden()
public Forbidden(int errorCode)
public Forbidden(Throwable cause)
public Forbidden(int errorCode,
Throwable cause)
public static Forbidden get()
Result.payload thread local
with default message.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localpublic static Forbidden of(int errorCode)
Result.payload thread local
with default message.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localerrorCode - the app defined error codepublic static Forbidden of(Throwable cause, int errorCode)
Result.payload thread local
with default message.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localcause - the causeerrorCode - the app defined error codepublic static Forbidden of(String message, Object... args)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localmessage - the messageargs - the message argumentspublic static Forbidden of(Throwable cause, String message, Object... args)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localcause - the causemessage - the messageargs - the message argumentspublic static Forbidden of(Throwable cause)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localcause - the causepublic static Forbidden of(Throwable cause, int errorCode, String message, Object... args)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localcause - the causeerrorCode - the app defined error codemessage - the messageargs - the message argumentspublic static Forbidden of(int errorCode, String message, Object... args)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localerrorCode - the app defined error codemessage - the messageargs - the message argumentspublic static Forbidden of(int errorCode, Throwable cause, String message, Object... args)
Result.payload thread local
with message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever
stored in the Result.payload thread localerrorCode - the app defined error codemessage - the messageargs - the message argumentsCopyright © 2017. All Rights Reserved.