com.sapportals.portal.prt.resource
Class ResourceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sapportals.portal.prt.runtime.PortalRuntimeException
                          |
                          +--com.sapportals.portal.prt.resource.ResourceException
All Implemented Interfaces:
java.io.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(java.lang.String s)
          ResourceException constructor.
ResourceException(java.lang.String s, java.lang.Throwable exception)
          Exception wrapper constructor.
ResourceException(java.lang.Throwable exception)
          Exception wrapper constructor.
 
Method Summary
 java.lang.String getMessage()
          overloads the superclass implementation to provide move details
 void setClassName(java.lang.String className)
          sets the name of the class responsible of the exception
 void setComponentName(java.lang.String componentName)
          sets the component name responsible of the exception
 void setDetail(java.lang.String docBase, IResource resource)
          This methods is called to provide further information about the context of the exception.
 void setResourceName(java.lang.String resourceName)
          Sets the resource location of the resource responsible of the exception.
 void setResourceType(java.lang.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, printStackTrace, printStackTrace, printStackTrace, setCause, setException, toHTML, toText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceException

public ResourceException(java.lang.String s)
ResourceException constructor.
Parameters:
s - a short String describing the exception

ResourceException

public ResourceException(java.lang.Throwable exception)
Exception wrapper constructor.
Parameters:
exception - a Throwable object referring to the original exception

ResourceException

public ResourceException(java.lang.String s,
                         java.lang.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(java.lang.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
request - The portal component request containning the current component context
docBase -  
resource -  

setResourceType

public void setResourceType(java.lang.String resourceType)
Sets the resource type responsible of the exception sets the resource type responsible of the exception
Parameters:
resourceType -  

setClassName

public void setClassName(java.lang.String className)
sets the name of the class responsible of the exception
Parameters:
className -  

setComponentName

public void setComponentName(java.lang.String componentName)
sets the component name responsible of the exception
Parameters:
componentName -  

setResourceName

public void setResourceName(java.lang.String resourceName)
Sets the resource location of the resource responsible of the exception.
Parameters:
resourceName -  

getMessage

public java.lang.String getMessage()
overloads the superclass implementation to provide move details
Overrides:
getMessage in class java.lang.Throwable