|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IThrowableToElement
Interface for translating from a Throwable to an Element.
Method Summary | |
---|---|
boolean |
supports(java.lang.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). |
org.w3c.dom.Element |
throwableToElement(java.lang.Throwable t,
org.w3c.dom.Document parentDoc)
Obtain an Element representing the throwable. |
Method Detail |
---|
org.w3c.dom.Element throwableToElement(java.lang.Throwable t, org.w3c.dom.Document parentDoc) throws java.lang.IllegalArgumentException
t
- a supported throwableparentDoc
- document into which the element is to go
java.lang.IllegalArgumentException
- if t is null.
java.lang.IllegalArgumentException
- if t is unsupported.boolean supports(java.lang.Class c) throws java.lang.IllegalArgumentException
c
- a Class extending Throwable
java.lang.IllegalArgumentException
- if c is null or does not extend Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |