com.sapportals.portal.prt.component

Class PortalComponentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sapportals.portal.prt.runtime.PortalRuntimeException
                  extended by com.sapportals.portal.prt.component.PortalComponentException
All Implemented Interfaces:
Serializable

public class PortalComponentException
extends PortalRuntimeException

The Portal Component Exception is the base class for all the exceptions raised by the Portal builder runtime.
It is also a wrapper for exception occurring inside the runtime.

See Also:
Serialized Form

Constructor Summary
PortalComponentException(String s)
          PortalComponentException constructor.
PortalComponentException(String s, Throwable exception)
          Exception wrapper constructor.
PortalComponentException(Throwable exception)
          Exception wrapper constructor.
 
Method Summary
 String getMessage()
          overloads the superclass implementation to provide move details including the name of the component the associated class and the user information if exists.
 void setDetail(IPortalComponentRequest request)
          this methods is called to provide further information about the context of the exception.
 void setDetail(String userName, String componentName, String componentClass)
          this methods is called to provide further information about the context of the exception.
 
Methods inherited from class com.sapportals.portal.prt.runtime.PortalRuntimeException
getCause, getException, printCausedBy, printStackTrace, printStackTrace, printStackTrace, setCause, setException, toHTML, toText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortalComponentException

public PortalComponentException(String s)
PortalComponentException constructor.

Parameters:
s - a short String describing the exception

PortalComponentException

public PortalComponentException(Throwable exception)
Exception wrapper constructor.

Parameters:
exception - a Throwable object referring to the original exception

PortalComponentException

public PortalComponentException(String s,
                                Throwable exception)
Exception wrapper constructor.

Parameters:
s - a short String describing the exception
exception - a Throwable object referring to the original exception
Method Detail

setDetail

public void setDetail(IPortalComponentRequest request)
this methods is called to provide further information about the context of the exception.

Parameters:
request - The portal component request containing the current component context

setDetail

public void setDetail(String userName,
                      String componentName,
                      String componentClass)
this methods is called to provide further information about the context of the exception.

Parameters:
userName -
componentName -
componentClass -

getMessage

public String getMessage()
overloads the superclass implementation to provide move details including the name of the component the associated class and the user information if exists.

Overrides:
getMessage in class Throwable
Returns:
the formatted message corresponding to the enriched exception
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[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-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice