| org.jasig.portal.channels.error.error2xml.IThrowableToElement
All known Subclasses: org.jasig.portal.channels.error.error2xml.DelegatingThrowableToElement, org.jasig.portal.channels.error.error2xml.ThrowableToElement, org.jasig.portal.channels.error.error2xml.AuthorizationExceptionToElement, org.jasig.portal.channels.error.error2xml.InternalTimeoutExceptionToElement, org.jasig.portal.channels.error.error2xml.ResourceMissingExceptionToElement,
IThrowableToElement | public interface IThrowableToElement (Code) | | Interface for translating from a Throwable to an Element.
author: andrew.petro@yale.edu version: $Revision: 35593 $ $Date: 2005-04-17 13:54:14 -0700 (Sun, 17 Apr 2005) $ since: uPortal 2.5 |
Method Summary | |
public boolean | supports(Class c) Returns true if the implementation knows how to translate an instance
of the given class into an Element (throwableToElement() will return non-null)
for instances of the class, which must extend Throwable). | public Element | throwableToElement(Throwable t, Document parentDoc) Obtain an Element representing the throwable. |
supports | public boolean supports(Class c) throws IllegalArgumentException(Code) | | Returns true if the implementation knows how to translate an instance
of the given class into an Element (throwableToElement() will return non-null)
for instances of the class, which must extend Throwable). Returns false
if the implementation will return null for throwableToNode() on an instance
of the class. Throws IllegalArgumentException if c is not a class which
extends Throwable. Throws IllegalArgumentException if c is null.
Parameters: c - a Class extending Throwable true if handles instances of c, false otherwise throws: IllegalArgumentException - if c is null or does not extend Throwable |
throwableToElement | public Element throwableToElement(Throwable t, Document parentDoc) throws IllegalArgumentException(Code) | | Obtain an Element representing the throwable.
Throws IllegalArgumentException if t is null.
Throws IllegalArgumentException if t is not supported, as indicated by
the supports() method.
Parameters: t - a supported throwable Parameters: parentDoc - document into which the element is to go an Element representing the Element throws: IllegalArgumentException - if t is null. throws: IllegalArgumentException - if t is unsupported. |
|
|