ilog.views.util
Class IlvRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ilog.views.util.IlvRuntimeException
All Implemented Interfaces:
Serializable

public class IlvRuntimeException
extends RuntimeException

IlvRuntimeException is a simple RuntimeException extension that allows a checked exception to be wrapped and rethrown as an unchecked exception. IlvRuntimeException does not use the "cause" chaining mechanism built into Throwable. Instead, the text description, the detail message, and the stack frames of this exception are replaced by those of the exception that is being wrapped. If the wrapped exception is an InvocationTargetException that was thrown by SwingUtilities.invokeAndWait(), the stack frames related to posting the runnable onto the AWT event queue and waiting for its execution to complete are removed for additional clarity.

Since:
JViews 8.1
See Also:
Serialized Form

Constructor Summary
IlvRuntimeException(Throwable exception)
          Creates a new IlvRuntimeException that wraps the specified Exception.
 
Method Summary
 String getMessage()
          
 String toString()
          Returns a short description of this throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvRuntimeException

public IlvRuntimeException(Throwable exception)
Creates a new IlvRuntimeException that wraps the specified Exception.

Parameters:
exception - The exception to be wrapped.
Method Detail

toString

public String toString()
Returns a short description of this throwable.

Overrides:
toString in class Throwable
Returns:
A string representation of this throwable.

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.