public class PaymentRequired extends ErrorResult
Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used. Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.
Result.Payload| Constructor and Description |
|---|
PaymentRequired() |
PaymentRequired(int errorCode) |
PaymentRequired(int errorCode,
String message,
Object... args) |
PaymentRequired(int errorCode,
Throwable cause) |
PaymentRequired(int errorCode,
Throwable cause,
String message,
Object... args) |
PaymentRequired(String message,
Object... args) |
PaymentRequired(Throwable cause) |
PaymentRequired(Throwable cause,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static PaymentRequired |
get()
Returns a static PaymentRequired instance and set the
Result.payload thread local with default message. |
static PaymentRequired |
of(int errorCode)
Returns a static PaymentRequired instance and set the
Result.payload thread local with error code and default message. |
static PaymentRequired |
of(int errorCode,
String message,
Object... args)
Returns a static PaymentRequired instance and set the
Result.payload thread local with error code and message specified. |
static PaymentRequired |
of(int errorCode,
Throwable cause)
Returns a static PaymentRequired instance and set the
Result.payload thread local with error code and cause specified |
static PaymentRequired |
of(int errorCode,
Throwable cause,
String message,
Object... args)
Returns a static PaymentRequired instance and set the
Result.payload thread local with error code, cause and message specified. |
static PaymentRequired |
of(String message,
Object... args)
Returns a static PaymentRequired instance and set the
Result.payload thread local with message specified. |
static PaymentRequired |
of(Throwable cause)
Returns a static PaymentRequired instance and set the
Result.payload thread local with cause specified. |
static PaymentRequired |
of(Throwable cause,
String message,
Object... args)
Returns a static PaymentRequired instance and set the
Result.payload thread local with cause and message specified. |
_localizedErrorMsg, applyMessage, attach, attachment, attachment, defaultMessage, errorCode, errorCode, getLocalizedMessage, of, of, of, of, of, of, of, toJsonString, toKVStore, toStringaddCookie, addHeader, apply, applyAfterCommitHandler, applyBeforeCommitHandler, applyCookies, applyHeaders, applyStatus, clearThreadLocals, header, payload, status, status, statusCode, timestamp, touchPayloaddoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic PaymentRequired()
public PaymentRequired(Throwable cause)
public PaymentRequired(int errorCode)
public PaymentRequired(int errorCode,
Throwable cause,
String message,
Object... args)
public PaymentRequired(int errorCode,
Throwable cause)
public static PaymentRequired get()
Returns a static PaymentRequired instance and set the 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 local
public static PaymentRequired of(String message, Object... args)
Returns a static PaymentRequired instance and set the 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 local
message - the messageargs - the message argumentspublic static PaymentRequired of(Throwable cause)
Returns a static PaymentRequired instance and set the Result.payload thread local with cause specified.
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
cause - the causepublic static PaymentRequired of(Throwable cause, String message, Object... args)
Returns a static PaymentRequired instance and set the Result.payload thread local with cause and message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
cause - the causemessage - the messageargs - the message argumentspublic static PaymentRequired of(int errorCode)
Returns a static PaymentRequired instance and set the Result.payload thread local with error code and default message.
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
errorCode - the app defined error codepublic static PaymentRequired of(int errorCode, String message, Object... args)
Returns a static PaymentRequired instance and set the Result.payload thread local with error code and message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
errorCode - the app defined error codemessage - the messageargs - the message argumentspublic static PaymentRequired of(int errorCode, Throwable cause)
Returns a static PaymentRequired instance and set the Result.payload thread local with error code and cause specified
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
cause - the causeerrorCode - the app defined error codepublic static PaymentRequired of(int errorCode, Throwable cause, String message, Object... args)
Returns a static PaymentRequired instance and set the Result.payload thread local with error code, cause and message specified.
When calling the instance on Throwable.getMessage() method, it will return whatever stored in the Result.payload thread local
cause - the causeerrorCode - the app defined error codemessage - the messageargs - the message argumentsCopyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.