(incubating) | The Free and Open Productivity Suite
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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.