com.highdeal.hci
Class InvalidInitializationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.error.ErrorException
              extended by com.highdeal.hci.InvalidInitializationException
All Implemented Interfaces:
IErrorException, java.io.Serializable

public class InvalidInitializationException
extends ErrorException

Exception thrown by the SAP CC system.

The possible reason codes are:

See Also:
Serialized Form

Field Summary
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 Summary
InvalidInitializationException()
          Constructs an empty exception.
InvalidInitializationException(int reason, java.lang.String message)
          Constructs an exception with the specified reason of the exception and the specified comprehensinve message.
InvalidInitializationException(int reason, java.lang.String message, IError error)
          Constructs an exception with the specified reason of the exception and the specified comprehensinve message.
 
Method Summary
 java.lang.String getMessage()
          Returns the comprehensive message of the exception.
 java.lang.String getOperandReference()
           
 int getReason()
          Returns the reason code of the exception.
 
Methods inherited from class com.highdeal.error.ErrorException
getError, setError
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOES_NOT_EXIST

public static final int DOES_NOT_EXIST
0: constant for a 'does not exist' exception reason

See Also:
Constant Field Values

ALREADY_EXIST

public static final int ALREADY_EXIST
1: constant for an 'already exist' exception reason

See Also:
Constant Field Values

INVALID

public static final int INVALID
2: constant for an 'invalid creation' exception reason

See Also:
Constant Field Values

CANNOT_INITIALIZE

public static final int CANNOT_INITIALIZE
4: constant for an 'invalid modification' exception reason

See Also:
Constant Field Values

DUPLICATED_PROPERTY

public static final int DUPLICATED_PROPERTY
3: constant for an 'invalid creation' exception reason

See Also:
Constant Field Values
Constructor Detail

InvalidInitializationException

public InvalidInitializationException()
Constructs an empty exception.


InvalidInitializationException

public InvalidInitializationException(int reason,
                                      java.lang.String message)
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.

Parameters:
reason - The reason code of this exception
message - The detail message

InvalidInitializationException

public InvalidInitializationException(int reason,
                                      java.lang.String message,
                                      IError error)
Constructs an exception with the specified reason of the exception and the specified comprehensinve message.

Parameters:
reason - The reason code of this exception
message - The detail message
error - The error linked to the exception
Method Detail

getReason

public int getReason()
Returns the reason code of the exception.

Returns:
The numeric reason code of this exception

getMessage

public java.lang.String getMessage()
Returns the comprehensive message of the exception.

Overrides:
getMessage in class ErrorException
Returns:
The human-readable message of this exception

getOperandReference

public java.lang.String getOperandReference()

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)