Tea Java Runtime API
Version 3.1.0

com.pdmfc.tea.runtime
Class SRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.pdmfc.tea.STeaException
                    |
                    +--com.pdmfc.tea.runtime.SRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SEmptyListException, SIOException, SMalformedListException, SNoSuchClassException, SNoSuchFunctionException, SNoSuchMethodException, SNoSuchVarException, SNumArgException, STypeException

public class SRuntimeException
extends STeaException

Signals an abnormal condition while running a Tea script. An SRuntimeException mantains a list of the messages being generated as the call stack unrolls.

See Also:
Serialized Form

Constructor Summary
SRuntimeException(java.lang.Object arg0, java.lang.String msg)
          Initializes the message from the zeroth argument of a command and from an error message.
SRuntimeException(java.lang.Object arg0, java.lang.String msgFmt, java.lang.Object[] fmtArgs)
           
SRuntimeException(java.lang.String msg)
          These exceptions are thrown while executing a Tea script and represents abnormal conditions.
SRuntimeException(java.lang.String msgFmt, java.lang.Object[] fmtArgs)
           
SRuntimeException(java.lang.Throwable e)
          Initializes the message with the same message as the exception given as argument.
 
Method Summary
 void addMessage(java.lang.String msg)
          Adds a message to the end of the message list.
 void addMessage(java.lang.String msgFmt, java.lang.Object[] fmtArgs)
           
 java.lang.String getFullMessage()
          Builds a String containing the text of all the messages on the message list.
 
Methods inherited from class com.pdmfc.tea.STeaException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SRuntimeException

public SRuntimeException(java.lang.String msg)
These exceptions are thrown while executing a Tea script and represents abnormal conditions.

SRuntimeException

public SRuntimeException(java.lang.String msgFmt,
                         java.lang.Object[] fmtArgs)

SRuntimeException

public SRuntimeException(java.lang.Throwable e)
Initializes the message with the same message as the exception given as argument.
Parameters:
e - An java.lang.Exception from where the message will be retrieved.

SRuntimeException

public SRuntimeException(java.lang.Object arg0,
                         java.lang.String msg)
Initializes the message from the zeroth argument of a command and from an error message.
Parameters:
arg0 - The zeroth argument of a command.
msg - A string with an error message.

SRuntimeException

public SRuntimeException(java.lang.Object arg0,
                         java.lang.String msgFmt,
                         java.lang.Object[] fmtArgs)
Method Detail

addMessage

public void addMessage(java.lang.String msg)
Adds a message to the end of the message list.
Parameters:
msg - Text of the message to be added at the end of the message list.

addMessage

public void addMessage(java.lang.String msgFmt,
                       java.lang.Object[] fmtArgs)

getFullMessage

public java.lang.String getFullMessage()
Builds a String containing the text of all the messages on the message list. Each message is set on a line of its own.
Returns:
A String with the text of all messages.

Tea Java Runtime API
Version 3.1.0

© 2002 PDM&FC, All Rights Reserved.