com.spotfire.server
Class NestedRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.spotfire.server.NestedRuntimeException
Direct Known Subclasses:
UserDirectoryException

public class NestedRuntimeException
extends RuntimeException

A base class for exceptions which can store a cause, just like the java.lang.RuntimeException in J2SDK 1.4. This class is compatible with both J2SDK 1.3 and 1.4.

Since:
DSS 7.3
See Also:
Serialized Form

Constructor Summary
NestedRuntimeException()
          Creates a NestedRuntimeException with no specified detail message or root cause.
NestedRuntimeException(String message)
          Creates a NestedRuntimeException with the specified detail message.
NestedRuntimeException(String message, Throwable cause)
          Creates a NestedRuntimeException with the specified detail message and cause.
NestedRuntimeException(Throwable cause)
          Creates a NestedRuntimeException with the specified cause and a detail message of (cause==null ?
 
Method Summary
 String abbreviatedStackTraceToString()
          Returns a String object containing an abbreviated stack trace for this exception.
 String getLocalizedMessage()
          Creates a localized description of this throwable.
 String getLogDetail()
           
 String getLogEntry()
           
 int getLogPriority()
           
 ResourceBundle getMessageBundle()
           
 Object[] getMessageParameters()
           
 Throwable getRootCause()
          Follows the chain of causes and returns the last one, which is assumed to be the root cause of the exception.
 boolean logStackTrace()
           
 void setLogDetail(String s)
           
 void setLogPriority(int priority)
           
 void setMessageParameters(Object[] parameters)
           
 String stackTraceToString()
          Returns a String object containing this exception's stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

NestedRuntimeException

public NestedRuntimeException()
Creates a NestedRuntimeException with no specified detail message or root cause. The detail message will be set to null.


NestedRuntimeException

public NestedRuntimeException(String message)
Creates a NestedRuntimeException with the specified detail message.

Parameters:
message - the detail message

NestedRuntimeException

public NestedRuntimeException(String message,
                              Throwable cause)
Creates a NestedRuntimeException with the specified detail message and cause.

Parameters:
message - the detail message
cause - the cause

NestedRuntimeException

public NestedRuntimeException(Throwable cause)
Creates a NestedRuntimeException with the specified cause and a detail message of (cause==null ? null : cause.toString()).

Parameters:
cause - the cause
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Creates a localized description of this throwable.

Overrides:
getLocalizedMessage in class Throwable
Returns:
the localized message

getRootCause

public Throwable getRootCause()
Follows the chain of causes and returns the last one, which is assumed to be the root cause of the exception. The cause can be this object.

Returns:
the cause of this throwable or this object.

stackTraceToString

public String stackTraceToString()
Returns a String object containing this exception's stack trace.

Returns:
the stack trace in String format

abbreviatedStackTraceToString

public String abbreviatedStackTraceToString()
Returns a String object containing an abbreviated stack trace for this exception.

Returns:
the stack trace in String format

getMessageBundle

public ResourceBundle getMessageBundle()

getMessageParameters

public Object[] getMessageParameters()

setMessageParameters

public void setMessageParameters(Object[] parameters)

getLogEntry

public String getLogEntry()

getLogDetail

public String getLogDetail()

setLogDetail

public void setLogDetail(String s)

logStackTrace

public boolean logStackTrace()

getLogPriority

public int getLogPriority()

setLogPriority

public void setLogPriority(int priority)


Copyright © 2000-2009 TIBCO Software Inc. All Rights Reserved.