org.ceryle.script
Class ScriptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ceryle.util.ProcessException
              extended by org.ceryle.script.ScriptException
All Implemented Interfaces:
Serializable

public class ScriptException
extends ProcessException

An general class for exceptions thrown by the script interpreter.

Since:
JDK1.3
Version:
$Id: ScriptException.java,v 1.2 2007-06-15 12:09:30 altheim Exp $
Author:
Murray Altheim
See Also:
ProcessException, Serialized Form

Field Summary
 
Fields inherited from class org.ceryle.util.ProcessException
exception, isMessageId, line, messageId, param1, param2, param3
 
Constructor Summary
ScriptException(Exception exception)
          Constructor for ScriptException tunnelling the original Exception.
ScriptException(String messageId)
          Constructor for ScriptException.
ScriptException(String messageId, Exception exception)
          Constructor for ScriptException provided a message identifier, tunnelling the original Exception.
ScriptException(String messageId, String param1)
          Constructor for ScriptException with a MessageId and one parameter.
ScriptException(String messageId, String param1, String param2)
          Constructor for ScriptException with a MessageId and two parameters.
ScriptException(String messageId, String param1, String param2, String param3)
          Constructor for ScriptException with a MessageId and three parameters.
 
Method Summary
 
Methods inherited from class org.ceryle.util.ProcessException
getException, getLine, getMessage, getMessageId
 
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
 

Constructor Detail

ScriptException

public ScriptException(String messageId)
Constructor for ScriptException.

Parameters:
messageId - the unique message identifier.

ScriptException

public ScriptException(Exception exception)
Constructor for ScriptException tunnelling the original Exception.

Parameters:
exception - the original Exception.

ScriptException

public ScriptException(String messageId,
                       Exception exception)
Constructor for ScriptException provided a message identifier, tunnelling the original Exception.

Parameters:
messageId - the unique message identifier.
exception - the original Exception.

ScriptException

public ScriptException(String messageId,
                       String param1)
Constructor for ScriptException with a MessageId and one parameter.

Parameters:
messageId - the unique message identifier.
param1 - a parameter string to be inserted at %1.

ScriptException

public ScriptException(String messageId,
                       String param1,
                       String param2)
Constructor for ScriptException with a MessageId and two parameters.

Parameters:
messageId - the unique message identifier.
param1 - a parameter string to be inserted at %1.
param2 - a parameter string to be inserted at %2.

ScriptException

public ScriptException(String messageId,
                       String param1,
                       String param2,
                       String param3)
Constructor for ScriptException with a MessageId and three parameters.

Parameters:
messageId - the unique message identifier.
param1 - a parameter string to be inserted at %1.
param2 - a parameter string to be inserted at %2.
param3 - a parameter string to be inserted at %3.


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.