SAP CC 3.0 IEC API

com.highdeal.iec
Class CannotInitializeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.iec.CannotInitializeException
All Implemented Interfaces:
java.io.Serializable

public class CannotInitializeException
extends java.lang.Exception

This exception can be thrown during the initialization of a Java Task.
There are 3 reasons:

See Also:
JavaTask.setProperties(java.util.Properties), Serialized Form

Field Summary
static int ALREADY_EXIST
          Reason code set, when a entity already exists.
static int DOES_NOT_EXIST
          Reason code set, when a entity doesn't exist.
static int INVALID
          Reason code set, when the initialization of Java Task isn't valid.
 
Constructor Summary
CannotInitializeException(int reason, java.lang.String message)
          Constructs a new instance of CannotInitializeException with a reason code and a message.
 
Method Summary
 int getReason()
          Return the reason code of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
Reason code set, when a entity doesn't exist.
See the message of the exception for more details.

See Also:
Constant Field Values

ALREADY_EXIST

public static final int ALREADY_EXIST
Reason code set, when a entity already exists.
See the message of the exception for more details.

See Also:
Constant Field Values

INVALID

public static final int INVALID
Reason code set, when the initialization of Java Task isn't valid.
See the message of the exception for more details.

See Also:
Constant Field Values
Constructor Detail

CannotInitializeException

public CannotInitializeException(int reason,
                                 java.lang.String message)
Constructs a new instance of CannotInitializeException with a reason code and a message.

Parameters:
reason - The reason code of this exception.
message - The message that give more details.
Method Detail

getReason

public int getReason()
Return the reason code of this exception.
There are 3 reasons:

Returns:
the reason code
See Also:
DOES_NOT_EXIST, ALREADY_EXIST, INVALID

SAP CC 3.0 IEC API

(c) Copyright 2011 SAP AG. All rights reserved. SAP Convergent Charging 3.0