com.sapportals.portal.prt.runtime

Class PortalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sapportals.portal.prt.runtime.PortalException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PortalConnectionException

public class PortalException
extends Exception

The Portal Exception is the base class for all the exceptions raised by PRT.

See Also:
Serialized Form

Constructor Summary
PortalException(String s)
          Constructor with a String message.
PortalException(String s, Throwable cause)
          Constructor with a message and a Throwable as the cause.
PortalException(Throwable cause)
          Constructor with a Throwable as the cause.
 
Method Summary
 Throwable getCause()
          Gets the cause if any
 void printStackTrace()
          Prints the stack trace of this exception and any chained exception to System.err
 void printStackTrace(PrintStream s)
          Prints the stack trace of this exception and any chained exception to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints the stack trace of this exception and any chained exception to the specified print writer.
 void setCause(Throwable t)
          Sets the cause
 String toHTML()
          Returns the message and the stack of the exception.
 String toText()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

PortalException

public PortalException(String s)
Constructor with a String message.

Parameters:
s - a short description of the exception.

PortalException

public PortalException(Throwable cause)
Constructor with a Throwable as the cause.


PortalException

public PortalException(String s,
                       Throwable cause)
Constructor with a message and a Throwable as the cause.

Method Detail

getCause

public Throwable getCause()
Gets the cause if any

Overrides:
getCause in class Throwable

setCause

public void setCause(Throwable t)
Sets the cause


printStackTrace

public void printStackTrace()
Prints the stack trace of this exception and any chained exception to System.err

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Prints the stack trace of this exception and any chained exception to the specified print writer.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintWriter to use for output

printStackTrace

public void printStackTrace(PrintStream s)
Prints the stack trace of this exception and any chained exception to the specified print stream.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintWriter to use for output

toHTML

public String toHTML()
Returns the message and the stack of the exception. The string is intended to be used in an HTML rendering.


toText

public String toText()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT


Copyright 2011 SAP AG Complete Copyright Notice