com.svincent.util
Class NestableRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.svincent.util.NestableRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AssertionException, CommandLine.CommandLineException, PrologRuntimeException, PrologTermVisitor.WamVisitorException

public class NestableRuntimeException
extends java.lang.RuntimeException

A runtime version of NestableException.

Author:
Shawn Vincent
See Also:
NestableException, Serialized Form

Constructor Summary
NestableRuntimeException()
           
NestableRuntimeException(java.lang.String msg)
           
NestableRuntimeException(java.lang.String msg, java.lang.Throwable ex)
           
 
Method Summary
 java.lang.Throwable getNestedException()
           
 java.lang.String getStackTrace()
          A convenience method: returns the stack trace of this exception as a string.
 void printStackTrace(java.io.PrintStream out)
          Print the stack trace of this exception to the given PrintStream.
 void printStackTrace(java.io.PrintWriter out)
          Print the stack trace of this exception to the given writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestableRuntimeException

public NestableRuntimeException()

NestableRuntimeException

public NestableRuntimeException(java.lang.String msg)

NestableRuntimeException

public NestableRuntimeException(java.lang.String msg,
                                java.lang.Throwable ex)
Method Detail

getNestedException

public java.lang.Throwable getNestedException()

getStackTrace

public java.lang.String getStackTrace()
A convenience method: returns the stack trace of this exception as a string.

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Print the stack trace of this exception to the given writer.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Print the stack trace of this exception to the given PrintStream.
Overrides:
printStackTrace in class java.lang.Throwable



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.