com.sap.portal.admin.editor.exception

Class EditorFrameworkRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.portal.admin.editor.exception.EditorFrameworkRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EditorConfigException, EditorRuntimeException, UnexpectedBehaviourException

public abstract class EditorFrameworkRuntimeException
extends RuntimeException

A base class for exceptions for the editor runtime framework. Holds a nested exception that can be retrieved, and printed using the printStackTrace method.

See Also:
Serialized Form

Constructor Summary
EditorFrameworkRuntimeException(String message)
          A constructor that sets the error string.
EditorFrameworkRuntimeException(String message, Throwable nestedException)
          A constructor that wraps an existing exception in this exception and sets the error string.
 
Method Summary
 Throwable getNestedException()
          Gets an exception that wraps this exception.
 void printStackTrace()
          Prints a trace for an exception to a standard error stream.
 void printStackTrace(PrintStream ps)
          Prints a trace for an exception to a print stream.
 void printStackTrace(PrintWriter pw)
          Prints a trace for an exception to the print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditorFrameworkRuntimeException

public EditorFrameworkRuntimeException(String message)
A constructor that sets the error string.

Parameters:
message - an error message

EditorFrameworkRuntimeException

public EditorFrameworkRuntimeException(String message,
                                       Throwable nestedException)
A constructor that wraps an existing exception in this exception and sets the error string.

Parameters:
message - an error message
nestedException - an existing exception
Method Detail

getNestedException

public Throwable getNestedException()
Gets an exception that wraps this exception.

Returns:
an existing exception

printStackTrace

public void printStackTrace()
Prints a trace for an exception to a standard error stream. Overrides the Throwable method.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream ps)
Prints a trace for an exception to a print stream. Overrides the Throwable method.

Overrides:
printStackTrace in class Throwable
Parameters:
ps - the print stream

printStackTrace

public void printStackTrace(PrintWriter pw)
Prints a trace for an exception to the print writer. Overrides the Throwable method.

Overrides:
printStackTrace in class Throwable
Parameters:
pw - the print writer
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/admin/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice