Package com.highdeal.hci
Class InvalidInitializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.error.ErrorException
com.highdeal.hci.InvalidInitializationException
- All Implemented Interfaces:
IErrorException,Serializable
Exception thrown by the SAP CC system.
The possible reason codes are:
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1: constant for an 'already exist' exception reasonstatic final int4: constant for an 'invalid modification' exception reasonstatic final int0: constant for a 'does not exist' exception reasonstatic final int3: constant for an 'invalid creation' exception reasonstatic final int2: constant for an 'invalid creation' exception reason -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the comprehensive message of the exception.intReturns the reason code of the exception.Methods inherited from class com.highdeal.error.ErrorException
getErrorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DOES_NOT_EXIST
public static final int DOES_NOT_EXIST0: constant for a 'does not exist' exception reason- See Also:
-
ALREADY_EXIST
public static final int ALREADY_EXIST1: constant for an 'already exist' exception reason- See Also:
-
INVALID
public static final int INVALID2: constant for an 'invalid creation' exception reason- See Also:
-
CANNOT_INITIALIZE
public static final int CANNOT_INITIALIZE4: constant for an 'invalid modification' exception reason- See Also:
-
DUPLICATED_PROPERTY
public static final int DUPLICATED_PROPERTY3: constant for an 'invalid creation' exception reason- See Also:
-
-
Constructor Details
-
InvalidInitializationException
public InvalidInitializationException()Constructs an empty exception. -
InvalidInitializationException
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.- Parameters:
reason- The reason code of this exceptionmessage- The detail message
-
InvalidInitializationException
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.- Parameters:
reason- The reason code of this exceptionmessage- The detail messageerror- The error linked to the exception
-
-
Method Details
-
getReason
public int getReason()Returns the reason code of the exception.- Returns:
- The numeric reason code of this exception
-
getMessage
Returns the comprehensive message of the exception.- Overrides:
getMessagein classErrorException- Returns:
- The human-readable message of this exception
-
getOperandReference
-