org.erights.e.elib.util
Class TwineException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.erights.e.elib.util.TwineException
- All Implemented Interfaces:
- Serializable
- public class TwineException
- extends RuntimeException
Safe: If an E program throws a non-Exception object, a TwineException or
RuntimeException is actually thrown using E.toTwine(problem) to convert
the object into the exception's message.
- Author:
- Mark S. Miller
- See Also:
- Serialized Form
Fields inherited from class java.lang.Throwable |
|
Methods inherited from class java.lang.Throwable |
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, toString, unwrap |
myTwineMsg
private final Twine myTwineMsg
TwineException
private TwineException(String bareMsg,
Twine msg)
make
public static RuntimeException make(Twine msg)
- Enabled: If the message is a simple String, then just use a RuntimeException.
Otherwise, use a TwineException in order to keep track of source
position information.
__printOn
public void __printOn(TextWriter out)
throws IOException
- Enabled: A TwineException just prints as 'problem: '
IOException
comments?