public class CGException
extends java.lang.Object
This class is introduced so that we don't need to care whether the
object is a Nameable of not. IllegalActionException
normally expects a Nameable as an argument.
| Red (rodiers) |
| Red (rodiers) |
| Constructor and Description |
|---|
CGException() |
| Modifier and Type | Method and Description |
|---|---|
static void |
throwException(java.lang.Object component,
java.lang.String string)
Throw an exception with a detail message that includes the
name of the first argument.
|
static void |
throwException(java.lang.Object component,
java.lang.Throwable cause,
java.lang.String detail)
Throw an exception with a detail message that includes the
name of the first argument.
|
static void |
throwException(java.lang.String string)
Throw an exception with a detail message.
|
public static void throwException(java.lang.String string)
throws IllegalActionException
string - The message.IllegalActionException - Always thrown by this method.public static void throwException(java.lang.Object component,
java.lang.String string)
throws IllegalActionException
component - The component.string - The message.IllegalActionException - Always thrown by this method.public static void throwException(java.lang.Object component,
java.lang.Throwable cause,
java.lang.String detail)
throws IllegalActionException
component - The component.cause - The cause of this exception, or null if the cause
is not known or nonexistent.detail - The message.IllegalActionException - Always thrown by this method.