|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.sapportals.portal.prt.runtime.PortalRuntimeException
|
+--com.sapportals.portal.prt.resource.ResourceException
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.
| 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 |
public ResourceException(java.lang.String s)
s - a short String describing the exceptionpublic ResourceException(java.lang.Throwable exception)
exception - a Throwable object referring to the original
exception
public ResourceException(java.lang.String s,
java.lang.Throwable exception)
s - a short String describing the exceptionexception - a Throwable object referring to the original
exception| Method Detail |
public void setDetail(java.lang.String docBase,
IResource resource)
docBase - The resource home pathIResource - The resource where the problem occuredrequest - The portal component request containning the current
component contextdocBase - resource - public void setResourceType(java.lang.String resourceType)
resourceType - public void setClassName(java.lang.String className)
className - public void setComponentName(java.lang.String componentName)
componentName - public void setResourceName(java.lang.String resourceName)
resourceName - public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||