Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

lib
Class StatusException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--lib.StatusException
All Implemented Interfaces:
Serializable

public class StatusException
extends RuntimeException

StatusException is used to pass a Status object from a test code which is terminated abnormaly. In many cases this is because of an exception thrown, but that can also be any other event that hinders the test execution.

See Also:
Serialized Form

Field Summary
protected  Throwable exceptionThrown
          Contains an exception if the StatusException was created with StatusException(String, Throwable) constructor.
protected  Status status
          The Status contained in the StatusException.
 
Constructor Summary
StatusException(Status st)
          Creates a StatusException containing a Status.
StatusException(String message, Throwable t)
          Constructs a StatusException containing an exception Status.
 
Method Summary
 Status getStatus()
           
 Throwable getThrownException()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exceptionThrown

protected Throwable exceptionThrown
Contains an exception if the StatusException was created with StatusException(String, Throwable) constructor.

status

protected Status status
The Status contained in the StatusException.
Constructor Detail

StatusException

public StatusException(String message,
                       Throwable t)
Constructs a StatusException containing an exception Status.
Parameters:
message - the message of the StatusException
t - the exception of the exception Status

StatusException

public StatusException(Status st)
Creates a StatusException containing a Status.
Method Detail

getThrownException

public Throwable getThrownException()
Returns:
an exception, if this represents an exception Status, false otherwise.

getStatus

public Status getStatus()
Returns:
a status contained in the StatusException.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.