All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.util.test.TestException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----cryptix.util.test.TestException

public class TestException
extends Exception
This exception is thrown when a test fails. If the test is running directly from the command line, the getErrorCode() method returns the error code that should be passed to System.exit.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Author:
David Hopwood

Variable Index

 o ABORTED_BY_USER
 o COMPLETE_FAILURE
 o COMPLETE_SUCCESS
 o FATAL_ERROR
 o ILLEGAL_ARGUMENTS
 o NO_TESTS_AVAILABLE
 o PARTIAL_FAILURE

Constructor Index

 o TestException(String, int)
Constructs a TestException with the specified detail message and error code.

Method Index

 o getErrorCode()
Returns the error code that should be passed to System.exit.

Variables

 o FATAL_ERROR
 public static final int FATAL_ERROR
 o COMPLETE_FAILURE
 public static final int COMPLETE_FAILURE
 o ILLEGAL_ARGUMENTS
 public static final int ILLEGAL_ARGUMENTS
 o NO_TESTS_AVAILABLE
 public static final int NO_TESTS_AVAILABLE
 o PARTIAL_FAILURE
 public static final int PARTIAL_FAILURE
 o ABORTED_BY_USER
 public static final int ABORTED_BY_USER
 o COMPLETE_SUCCESS
 public static final int COMPLETE_SUCCESS

Constructors

 o TestException
 public TestException(String reason,
                      int code)
Constructs a TestException with the specified detail message and error code.

Parameters:
reason - the reason why the exception was thrown.
code - the error code.

Methods

 o getErrorCode
 public int getErrorCode()
Returns the error code that should be passed to System.exit.


All Packages  Class Hierarchy  This Package  Previous  Next  Index