Package classes
Enum API_PreferabliException.PreferabliExceptionType
- java.lang.Object
-
- java.lang.Enum<API_PreferabliException.PreferabliExceptionType>
-
- classes.API_PreferabliException.PreferabliExceptionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<API_PreferabliException.PreferabliExceptionType>
- Enclosing class:
- API_PreferabliException
public static enum API_PreferabliException.PreferabliExceptionType extends java.lang.Enum<API_PreferabliException.PreferabliExceptionType>
Type of error that occurred.- See Also:
the container class.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AlreadyLoadedThe data you requested is already loaded.APIErrorAn error from the API.BadDataAn error in the data that came back from the APIDatabaseErrorA database error.InvalidAccessTokenUser / customer not logged in.InvalidClientInterfaceSDK not initialized properly.InvalidIntegrationIdSDK not initialized properly.JSONErrorAn error decoding JSON.MappingNotFoundA mapping error.NetworkErrorA network error.OtherErrorAn unknown / other error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()Get a general description of this type of exception.static API_PreferabliException.PreferabliExceptionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static API_PreferabliException.PreferabliExceptionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APIError
public static final API_PreferabliException.PreferabliExceptionType APIError
An error from the API.
-
NetworkError
public static final API_PreferabliException.PreferabliExceptionType NetworkError
A network error.
-
OtherError
public static final API_PreferabliException.PreferabliExceptionType OtherError
An unknown / other error.
-
JSONError
public static final API_PreferabliException.PreferabliExceptionType JSONError
An error decoding JSON.
-
AlreadyLoaded
public static final API_PreferabliException.PreferabliExceptionType AlreadyLoaded
The data you requested is already loaded.
-
BadData
public static final API_PreferabliException.PreferabliExceptionType BadData
An error in the data that came back from the API
-
InvalidAccessToken
public static final API_PreferabliException.PreferabliExceptionType InvalidAccessToken
User / customer not logged in.
-
InvalidClientInterface
public static final API_PreferabliException.PreferabliExceptionType InvalidClientInterface
SDK not initialized properly.
-
InvalidIntegrationId
public static final API_PreferabliException.PreferabliExceptionType InvalidIntegrationId
SDK not initialized properly.
-
DatabaseError
public static final API_PreferabliException.PreferabliExceptionType DatabaseError
A database error.
-
MappingNotFound
public static final API_PreferabliException.PreferabliExceptionType MappingNotFound
A mapping error.
-
-
Method Detail
-
values
public static API_PreferabliException.PreferabliExceptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (API_PreferabliException.PreferabliExceptionType c : API_PreferabliException.PreferabliExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static API_PreferabliException.PreferabliExceptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMessage
public java.lang.String getMessage()
Get a general description of this type of exception.- Returns:
- a string description of the type.
-
-