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

Field Summary
private  Twine myTwineMsg
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
private TwineException(String bareMsg, Twine msg)
           
 
Method Summary
 void __printOn(TextWriter out)
          Enabled: A TwineException just prints as 'problem: '
static RuntimeException make(Twine msg)
          Enabled: If the message is a simple String, then just use a RuntimeException.
 
Methods inherited from class java.lang.Throwable
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myTwineMsg

private final Twine myTwineMsg
Constructor Detail

TwineException

private TwineException(String bareMsg,
                       Twine msg)
Method Detail

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?