| Package | Description |
|---|---|
| org.osgl.mvc.result |
| Modifier and Type | Field and Description |
|---|---|
static Forbidden |
Forbidden.INSTANCE
The static instance of Forbidden result.
|
| Modifier and Type | Method and Description |
|---|---|
static Forbidden |
Forbidden.get()
Returns a static Forbidden instance and set the
Result.payload thread local with default message. |
static Forbidden |
Forbidden.of(int errorCode)
Returns a static Forbidden instance and set the
Result.payload thread local with error code and default message. |
static Forbidden |
Forbidden.of(int errorCode,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local with error code and message specified. |
static Forbidden |
Forbidden.of(int errorCode,
Throwable cause)
Returns a static Forbidden instance and set the
Result.payload thread local with error code and cause specified |
static Forbidden |
Forbidden.of(int errorCode,
Throwable cause,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local with error code, cause and message specified. |
static Forbidden |
Forbidden.of(String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local with message specified. |
static Forbidden |
Forbidden.of(Throwable cause)
Returns a static Forbidden instance and set the
Result.payload thread local with cause specified. |
static Forbidden |
Forbidden.of(Throwable cause,
int errorCode)
Deprecated.
|
static Forbidden |
Forbidden.of(Throwable cause,
int errorCode,
String message,
Object... args)
Deprecated.
|
static Forbidden |
Forbidden.of(Throwable cause,
String message,
Object... args)
Returns a static Forbidden instance and set the
Result.payload thread local with cause and message specified. |
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.