autohit.common
Class AutohitException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byautohit.common.AutohitException
All Implemented Interfaces:
AutohitErrorCodes, java.io.Serializable
Direct Known Subclasses:
CallException, ChannelException, ServerException, TellException, UniverseException, VMException

public class AutohitException
extends java.lang.Exception
implements AutohitErrorCodes

A base exception for Autohit. The specific error is given in the numeric field. All default exceptions are assumed to be ERRORS.

Version:
1.0 Version History EPG - Initial - 14May03
EPG - Added chaining support - 11Jun03
EPG - Chenge to new error code scheme - 19Jul03
Author:
Erich P. Gatejen
See Also:
Serialized Form

Field Summary
static int AUTOHIT_EXCEPTION_GENERIC
          Numeric values for the exception.
 int numeric
          Exception numeric
 
Fields inherited from interface autohit.common.AutohitErrorCodes
CODE_CALL_ERROR, CODE_CALL_FAULT, CODE_CALL_INTENTIONAL_FAULT, CODE_CALL_MODULE_CANT_LOAD_FAULT, CODE_CALL_PERSISTMISMATCH_FAULT, CODE_CALL_PERSISTNOTFOUND_FAULT, CODE_CALL_PROGRAM_ERROR, CODE_CALL_PUBLIC_ERROR, CODE_CALL_REPORTED_ERROR, CODE_CALL_REQUIRED_PARAM_CLASSMISMATCH_FAULT, CODE_CALL_REQUIRED_PARAM_MISSING_FAULT, CODE_CALL_UNRECOVERABLE_FAULT, CODE_CATASTROPHIC_FRAMEWORK_FAULT, CODE_CHANNEL_ALREADY_EXISTS_ERROR, CODE_CHANNEL_BAD_CONTROLLER_FAULT, CODE_CHANNEL_BAD_PRIORITY_LEVEL_ERROR, CODE_CHANNEL_DOESNT_EXIST_ERROR, CODE_CHANNEL_DRAIN_GENERAL_FAULT, CODE_CHANNEL_DRAIN_INVALID_ERROR, CODE_CHANNEL_DRAIN_REQUIRES_ID_ERROR, CODE_CHANNEL_ERROR, CODE_CHANNEL_FAULT, CODE_CHANNEL_INJECTOR_INVALID_ERROR, CODE_CHANNEL_INTERRUPTED, CODE_CHANNEL_PANIC, CODE_COMMAND_ERROR, CODE_COMMAND_FAULT, CODE_COMMAND_METHOD_NOT_SUPPORTED, CODE_COMMAND_REGISTRY_FAULT, CODE_COMMAND_UNKNOWN, CODE_COMPILE_ABORT, CODE_COMPILE_CONFIGURATION_FAULT, CODE_COMPILE_ERROR, CODE_COMPILE_WARNING, CODE_CONFIGURATION_ERROR, CODE_DEBUGGING, CODE_DEBUGGING_CALLS, CODE_DEBUGGING_CORE, CODE_DEBUGGING_MODULES, CODE_DEBUGGING_PUBLIC, CODE_DEBUGGING_SERVICES, CODE_DEBUGGING_SYSTEM, CODE_DEFAULT, CODE_DEFAULT_ERROR, CODE_DEFAULT_FAULT, CODE_DEFAULT_PANIC, CODE_DEFAULT_WARNING, CODE_INFORMATIONAL_OK, CODE_INFORMATIONAL_OK_VERBOSE, CODE_MODULE_FAULT, CODE_MODULE_REPORTED_ERROR, CODE_MODULE_REPORTED_INFO_OK, CODE_MODULE_REPORTED_WARNING, CODE_NONE, CODE_OBJECT_DOES_NOT_EXIST, CODE_PROGRAM_DIVIDEBYZERO, CODE_PROGRAM_ERROR, CODE_SERVER_BAD_CONTEXT_FAULT, CODE_SERVER_DONE, CODE_SERVER_ERROR, CODE_SERVER_FAULT, CODE_SERVER_IO_ERROR, CODE_SERVER_PANIC, CODE_SERVICE_GENERAL_FAULT, CODE_SERVICE_GENERIC_ERROR, CODE_SERVICE_INTENTIONAL_HALT, CODE_SERVICE_PANIC, CODE_SERVICE_STARTUP_FAULT, CODE_STARTUP_ABORT, CODE_STARTUP_CONFIGURATION_FAULT, CODE_STARTUP_FAULT, CODE_SW_DETECTED_FAULT, CODE_SYSTEM_GENERIC_ERROR, CODE_SYSTEM_TELLIO_BROKEN_PROTOCOL, CODE_UNIVERSE_ERROR, CODE_USER_INFO_FLOOR, CODE_USER_INFO_TOP, CODE_VM_CALL_FAULT, CODE_VM_CORE_DOESNT_EXIST_FAULT, CODE_VM_CORE_FAILED_CONTROL_FAULT, CODE_VM_CORE_FAILED_RETRIEVAL_FAULT, CODE_VM_CORE_FAILED_STORE_FAULT, CODE_VM_CORE_GENERAL_FAULT, CODE_VM_DONE, CODE_VM_EXEC_DOES_NOT_EXIST_FAULT, CODE_VM_EXEC_FAULT, CODE_VM_GENERAL_FAULT, CODE_VM_GENERIC_ERROR, CODE_VM_INSTRUCTION_ABORT, CODE_VM_INSTRUCTION_ERROR, CODE_VM_INSTRUCTION_FAULT, CODE_VM_INSTRUCTION_WARNING, CODE_VM_INTENTIONAL_FAULT, CODE_VM_INVALID_INSTRUCTION_FAULT, CODE_VM_OBJECT_LOCKED_FAULT, CODE_VM_PANIC, CODE_VM_PREPARE_FAULT, CODE_VM_PROCESSOR_ERROR, CODE_VM_PROCESSOR_ERROR_NOTFOUND, CODE_VM_PROCESSOR_ERROR_UNBOUNDED, CODE_VM_PROCESSOR_FAULT, CODE_VM_ROUTINE_BREAKING_FAULT, CODE_VM_SOFTWARE_DETECTED_FAULT, CODE_VM_SUBSYSTEM_FAULT, CODE_VM_VARIABLE_NOT_DEFINED_FAULT, CODE_VM_VARIABLE_TYPE_MISMATCH_ERROR, ERROR, EVENT_COMMAND_ACCEPTED, EVENT_COMMAND_COMPLELTED, EVENT_COMMAND_FAILED, EVENT_COMMAND_FAULTED, EVENT_COMMAND_FINAL_RESULTS, EVENT_COMMAND_PANICED, EVENT_COMMAND_PARTIAL_RESULTS, EVENT_COMMAND_REJECTED, FAULT, FLOOR_NUMERIC, INFORMATIONAL, PANIC, TOP_CODE_CALL_ERROR, TOP_CODE_UNIVERSE_ERROR, TOP_NUMERIC, WARNING
 
Constructor Summary
AutohitException()
          Default Constructor.
AutohitException(int n)
          Message constructor
AutohitException(int n, java.lang.Throwable theCause)
          Message constructor with cause
AutohitException(java.lang.String message)
          Message constructor
AutohitException(java.lang.String message, int n)
          Message constructor
AutohitException(java.lang.String message, int n, java.lang.Throwable theCause)
          Message constructor with cause
AutohitException(java.lang.String message, java.lang.Throwable theCause)
          Message constructor with Cause
AutohitException(java.lang.Throwable theCause)
          Default Constructor with Cause
 
Method Summary
static boolean isError(int code)
          Helper for determining level - Error
static boolean isFault(int code)
          Helper for determining level - Fault
static boolean isInformational(int code)
          Helper for determining level - Informational
static boolean isPanic(int code)
          Helper for determining level - Panic
static boolean isWarning(int code)
          Helper for determining level - Warning
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numeric

public int numeric
Exception numeric


AUTOHIT_EXCEPTION_GENERIC

public static final int AUTOHIT_EXCEPTION_GENERIC
Numeric values for the exception.

See Also:
Constant Field Values
Constructor Detail

AutohitException

public AutohitException()
Default Constructor.


AutohitException

public AutohitException(java.lang.Throwable theCause)
Default Constructor with Cause

Parameters:
theCause - for exception chaining

AutohitException

public AutohitException(java.lang.String message)
Message constructor

Parameters:
message - text message for exception

AutohitException

public AutohitException(java.lang.String message,
                        java.lang.Throwable theCause)
Message constructor with Cause

Parameters:
message - text message for exception
theCause - for exception chaining

AutohitException

public AutohitException(int n)
Message constructor

Parameters:
n - numeric error

AutohitException

public AutohitException(int n,
                        java.lang.Throwable theCause)
Message constructor with cause

Parameters:
n - numeric error
theCause - for exception chaining

AutohitException

public AutohitException(java.lang.String message,
                        int n)
Message constructor

Parameters:
message - text message for exception
n - numeric error

AutohitException

public AutohitException(java.lang.String message,
                        int n,
                        java.lang.Throwable theCause)
Message constructor with cause

Parameters:
message - text message for exception
n - numeric error
theCause - for exception chaining
Method Detail

isInformational

public static boolean isInformational(int code)
Helper for determining level - Informational

Parameters:
code - numeric code
Returns:
true if it is informational

isWarning

public static boolean isWarning(int code)
Helper for determining level - Warning

Parameters:
code - numeric code
Returns:
true if it is a warning

isError

public static boolean isError(int code)
Helper for determining level - Error

Parameters:
code - numeric code
Returns:
true if it is an error

isFault

public static boolean isFault(int code)
Helper for determining level - Fault

Parameters:
code - numeric code
Returns:
true if it is a fault

isPanic

public static boolean isPanic(int code)
Helper for determining level - Panic

Parameters:
code - numeric code
Returns:
true if it is a panic


Test.