org.specrunner.util.xom.core
Class PresentationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.specrunner.util.xom.core.PresentationException
All Implemented Interfaces:
Serializable, IPresentation

public class PresentationException
extends Exception
implements IPresentation

Generic presentation wrapper of exceptions.

Author:
Thiago Santos
See Also:
Serialized Form

Constructor Summary
PresentationException(IPresentation presentation)
          Set a presentation.
 
Method Summary
 nu.xom.Node asNode()
          The object representation as node.
 String asString()
          The object representation as string.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PresentationException

public PresentationException(IPresentation presentation)
Set a presentation.

Parameters:
presentation - A presentation object.
Method Detail

asString

public String asString()
Description copied from interface: IPresentation
The object representation as string.

Specified by:
asString in interface IPresentation
Returns:
String representation.

asNode

public nu.xom.Node asNode()
Description copied from interface: IPresentation
The object representation as node.

Specified by:
asNode in interface IPresentation
Returns:
Node representation.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2014. All rights reserved.