org.jasig.portal.channels.error.error2xml
Class ResourceMissingExceptionToElement

java.lang.Object
  extended by org.jasig.portal.channels.error.error2xml.ResourceMissingExceptionToElement
All Implemented Interfaces:
IThrowableToElement

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class ResourceMissingExceptionToElement
extends Object
implements IThrowableToElement

Translates ResourceMissingException instances to XML Elements.

Since:
uPortal 2.5
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $
Author:
andrew.petro@yale.edu

Constructor Summary
ResourceMissingExceptionToElement()
          Deprecated.  
 
Method Summary
 boolean supports(Class c)
          Deprecated. 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).
 Element throwableToElement(Throwable t, Document parentDoc)
          Deprecated. Obtain an Element representing the throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMissingExceptionToElement

public ResourceMissingExceptionToElement()
Deprecated. 
Method Detail

throwableToElement

public Element throwableToElement(Throwable t,
                                  Document parentDoc)
                           throws IllegalArgumentException
Deprecated. 
Description copied from interface: IThrowableToElement
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.

Specified by:
throwableToElement in interface IThrowableToElement
Parameters:
t - a supported throwable
parentDoc - document into which the element is to go
Returns:
an Element representing the Element
Throws:
IllegalArgumentException - if t is null.

supports

public boolean supports(Class c)
                 throws IllegalArgumentException
Deprecated. 
Description copied from interface: IThrowableToElement
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.

Specified by:
supports in interface IThrowableToElement
Parameters:
c - a Class extending Throwable
Returns:
true if handles instances of c, false otherwise
Throws:
IllegalArgumentException - if c is null or does not extend Throwable


Copyright © 2010 Jasig. All Rights Reserved.