com.sapportals.portal.prt.resource

Class ResourceException

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.resource.ResourceException
All Implemented Interfaces:
Serializable

public class ResourceException
extends PortalRuntimeException

ResourceException is thrown when there is a mismatch between the resource type provided and the real resource type or when the class implementing the IResource interface is not able to parse the resource.

See Also:
Serialized Form

Constructor Summary
ResourceException(String s)
          ResourceException constructor.
ResourceException(String s, Throwable exception)
          Exception wrapper constructor.
ResourceException(Throwable exception)
          Exception wrapper constructor.
 
Method Summary
 String getMessage()
          overloads the superclass implementation to provide move details
 void setClassName(String className)
          sets the name of the class responsible of the exception
 void setComponentName(String componentName)
          sets the component name responsible of the exception
 void setDetail(String docBase, IResource resource)
          This methods is called to provide further information about the context of the exception.
 void setResourceName(String resourceName)
          Sets the resource location of the resource responsible of the exception.
 void setResourceType(String resourceType)
          Sets the resource type responsible of the exception sets the resource type responsible 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

ResourceException

public ResourceException(String s)
ResourceException constructor.

Parameters:
s - a short String describing the exception

ResourceException

public ResourceException(Throwable exception)
Exception wrapper constructor.

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

ResourceException

public ResourceException(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(String docBase,
                      IResource resource)
This methods is called to provide further information about the context of the exception.

Parameters:
docBase - The resource home path
IResource - The resource where the problem occured

setResourceType

public void setResourceType(String resourceType)
Sets the resource type responsible of the exception sets the resource type responsible of the exception

Parameters:
resourceType -

setClassName

public void setClassName(String className)
sets the name of the class responsible of the exception

Parameters:
className -

setComponentName

public void setComponentName(String componentName)
sets the component name responsible of the exception

Parameters:
componentName -

setResourceName

public void setResourceName(String resourceName)
Sets the resource location of the resource responsible of the exception.

Parameters:
resourceName -

getMessage

public String getMessage()
overloads the superclass implementation to provide move details

Overrides:
getMessage in class Throwable
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[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
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice