com.ibm.itim.script
Class ScriptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.itim.exception.ITIMException
              extended by com.ibm.itim.script.ScriptException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ScriptCompilationException, ScriptEvaluationException, ScriptInitializationException

public class ScriptException
extends ITIMException

Represents an exception thrown from a script interpreter. This class supports localization with an interface that allows the specification of a resource bundle message and a set of parameters.

Since:
ITIM 5.0
See Also:
Serialized Form

Field Summary
static java.lang.String CUSTOM_ERROR_INVALID_FUNCTION_ARGUMENTS
          Constant representing a message key in a property file.
static java.lang.String ENCRYPTION_DECRYPTION_ERROR
          Constant representing a message key in a property file.
static java.lang.String EVAL_ERROR
          Constant representing a message key in a property file.
static java.lang.String ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
          Constant representing a message key in a property file.
static java.lang.String INVALID_CONTEXT
          Constant representing a message key in a property file.
static java.lang.String INVALID_JSOBJECT
          Constant representing a message key in a property file.
static java.lang.String INVALID_SCOPE_VALUE
          Constant representing a message key in a property file.
static java.lang.String JAVA_OBJECT_CREATION_ERROR
          Constant representing a message key in a property file.
static java.lang.String PROFILE_MISSING
          Constant representing a message key in a property file.
static java.lang.String SCOPE_NOT_INT
          Constant representing a message key in a property file.
static java.lang.String SCRIPT_OBJECT_CREATION_ERROR
          Constant representing a message key in a property file.
static java.lang.String UNSUPPORTED_CONVERSION
          Constant representing a message key in a property file.
static java.lang.String USER_TRIGGERED_EVAL_ERROR
          Constant representing a message key in a property file.
 
Constructor Summary
ScriptException(java.lang.String msg)
          Constructs the exception with a message.
ScriptException(java.lang.String msg, java.lang.Object[] tokenValues)
          Constructs the exception with a message and a list of parameters.
ScriptException(java.lang.String msg, java.lang.Object[] tokenValues, java.lang.Throwable throwable)
          Constructs the exception with a message and a list of parameters.
ScriptException(java.lang.String msg, java.lang.Throwable throwable)
          Constructs the exception with a message.
 
Method Summary
 boolean isUserTriggered()
           
 void setUserTriggered(boolean isUserTriggered)
           
 
Methods inherited from class com.ibm.itim.exception.ITIMException
getLocalizedMessage, getMessage, getMessage, getMessageId, getThrowable, getTokens, normalize, printStackTrace, printStackTrace, printStackTrace, toXML
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVAL_ERROR

public static final java.lang.String EVAL_ERROR
Constant representing a message key in a property file. CTGIME203E

See Also:
Constant Field Values

USER_TRIGGERED_EVAL_ERROR

public static final java.lang.String USER_TRIGGERED_EVAL_ERROR
Constant representing a message key in a property file. CTGIME206E

See Also:
Constant Field Values

INVALID_JSOBJECT

public static final java.lang.String INVALID_JSOBJECT
Constant representing a message key in a property file. CTGIMO101E

See Also:
Constant Field Values

INVALID_CONTEXT

public static final java.lang.String INVALID_CONTEXT
Constant representing a message key in a property file. CTGIMO107E

See Also:
Constant Field Values

SCOPE_NOT_INT

public static final java.lang.String SCOPE_NOT_INT
Constant representing a message key in a property file. CTGIMO102E

See Also:
Constant Field Values

INVALID_SCOPE_VALUE

public static final java.lang.String INVALID_SCOPE_VALUE
Constant representing a message key in a property file. CTGIMO103E

See Also:
Constant Field Values

ENCRYPTION_DECRYPTION_ERROR

public static final java.lang.String ENCRYPTION_DECRYPTION_ERROR
Constant representing a message key in a property file. CTGIMO104E

See Also:
Constant Field Values

ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL

public static final java.lang.String ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
Constant representing a message key in a property file. CTGIMO105E

See Also:
Constant Field Values

PROFILE_MISSING

public static final java.lang.String PROFILE_MISSING
Constant representing a message key in a property file. CTGIMO106E

See Also:
Constant Field Values

SCRIPT_OBJECT_CREATION_ERROR

public static final java.lang.String SCRIPT_OBJECT_CREATION_ERROR
Constant representing a message key in a property file. CTGIMO108E

See Also:
Constant Field Values

JAVA_OBJECT_CREATION_ERROR

public static final java.lang.String JAVA_OBJECT_CREATION_ERROR
Constant representing a message key in a property file. CTGIMO109E

See Also:
Constant Field Values

UNSUPPORTED_CONVERSION

public static final java.lang.String UNSUPPORTED_CONVERSION
Constant representing a message key in a property file. CTGIMO110E

See Also:
Constant Field Values

CUSTOM_ERROR_INVALID_FUNCTION_ARGUMENTS

public static final java.lang.String CUSTOM_ERROR_INVALID_FUNCTION_ARGUMENTS
Constant representing a message key in a property file. CTGIME201E

See Also:
Constant Field Values
Constructor Detail

ScriptException

public ScriptException(java.lang.String msg,
                       java.lang.Object[] tokenValues)
Constructs the exception with a message and a list of parameters. The message could be a key to a message in a resource bundle, or a raw display message. If the message is a key, a list of parameters can be specified that will be inserted into the final message according to the format defined in the resource bundle.

Parameters:
msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
tokenValues - Object arrray of parameters to be inserted into the final localized message.

ScriptException

public ScriptException(java.lang.String msg,
                       java.lang.Object[] tokenValues,
                       java.lang.Throwable throwable)
Constructs the exception with a message and a list of parameters. The message could be a key to a message in a resource bundle, or a raw display message. If the message is a key, a list of parameters can be specified that will be inserted into the final message according to the format defined in the resource bundle.

Parameters:
msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
tokenValues - Object arrray of parameters to be inserted into the final localized message.
throwable - originating exception or error.

ScriptException

public ScriptException(java.lang.String msg,
                       java.lang.Throwable throwable)
Constructs the exception with a message. The message could be a key to a message in a resource bundle, or a raw display message.

Parameters:
msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
throwable - originating exception or error.

ScriptException

public ScriptException(java.lang.String msg)
Constructs the exception with a message. The message could be a key to a message in a resource bundle, or a raw display message.

Parameters:
msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
Method Detail

isUserTriggered

public boolean isUserTriggered()

setUserTriggered

public void setUserTriggered(boolean isUserTriggered)


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.