Decision Center API

ilog.webui.dhtml
Class IlxWRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ilog.webui.dhtml.IlxWRuntimeException
All Implemented Interfaces:
Serializable

public class IlxWRuntimeException
extends RuntimeException

The base class for web components exceptions.
Those exceptions may be thrown by the web components methods when the user uses the component inappropriately.

See Also:
Serialized Form

Constructor Summary
IlxWRuntimeException(String message)
          Constructs a new IlxWRuntimeException with the specified message.
IlxWRuntimeException(String message, Throwable rootCause)
          Constructs a new IlxWRuntimeException when the framework needs to throw an exception and includes a message about the "root cause" exception that interfered with its normal operation, including a description message.
IlxWRuntimeException(Throwable rootCause)
          Constructs a new IlxWRuntimeException when the source needs to throw an exception and includes a message about the "root cause" exception that interfered with its normal operation.
 
Method Summary
 Throwable getRootCause()
          Returns the exception that caused this servlet exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlxWRuntimeException

public IlxWRuntimeException(String message)
Constructs a new IlxWRuntimeException with the specified message.

Parameters:
message - A String containing the text of the exception message

IlxWRuntimeException

public IlxWRuntimeException(String message,
                            Throwable rootCause)
Constructs a new IlxWRuntimeException when the framework needs to throw an exception and includes a message about the "root cause" exception that interfered with its normal operation, including a description message.

Parameters:
message - a String containing the text of the exception message
rootCause - the Throwable exception that interfered with the normal operation of the framework, making the IlxWRuntimeException necessary.

IlxWRuntimeException

public IlxWRuntimeException(Throwable rootCause)
Constructs a new IlxWRuntimeException when the source needs to throw an exception and includes a message about the "root cause" exception that interfered with its normal operation. The exception message is based on the localized message of the underlying exception.

This constructor calls the getLocalizedMessage method on the Throwable exception to get a localized exception message. When you subclass IlxWRuntimeException, you may override this method to create an exception message designed for a specific locale.

Parameters:
rootCause - The Throwable exception that interfered with the normal operation of the framework, making the IlxWRuntimeException necessary.
Method Detail

getRootCause

public Throwable getRootCause()
Returns the exception that caused this servlet exception.

Returns:
the Throwable that caused this IlxWRuntimeException. May be null if no root cause was specified in the exception constructor.

Decision Center API

© Copyright IBM Corp. 1987, 2013