public class InvalidInitializationException extends ErrorException
The possible reason codes are:
| Modifier and Type | Field and Description |
|---|---|
static int |
ALREADY_EXIST
1: constant for an 'already exist' exception reason
|
static int |
CANNOT_INITIALIZE
4: constant for an 'invalid modification' exception reason
|
static int |
DOES_NOT_EXIST
0: constant for a 'does not exist' exception reason
|
static int |
DUPLICATED_PROPERTY
3: constant for an 'invalid creation' exception reason
|
static int |
INVALID
2: constant for an 'invalid creation' exception reason
|
| Constructor and Description |
|---|
InvalidInitializationException()
Constructs an empty exception.
|
InvalidInitializationException(int reason,
String message)
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.
|
InvalidInitializationException(int reason,
String message,
IError error)
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the comprehensive message of the exception.
|
String |
getOperandReference() |
int |
getReason()
Returns the reason code of the exception.
|
getErroraddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int DOES_NOT_EXIST
public static final int ALREADY_EXIST
public static final int INVALID
public static final int CANNOT_INITIALIZE
public static final int DUPLICATED_PROPERTY
public InvalidInitializationException()
public InvalidInitializationException(int reason,
String message)
reason - The reason code of this exceptionmessage - The detail messagepublic InvalidInitializationException(int reason,
String message,
IError error)
reason - The reason code of this exceptionmessage - The detail messageerror - The error linked to the exceptionpublic int getReason()
public String getMessage()
getMessage in class ErrorExceptionpublic String getOperandReference()