All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.commerce.CommerceBug

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----semper.commerce.CommerceBug

public final class CommerceBug
extends RuntimeException
This class encapsulates exceptions that are thrown as a result of internal implementation bugs in the commerce layer. The class is derived from RuntimeException so that it is not necessary to declare these exceptions in a throws clause.

Version:
$Id: CommerceBug.java,v 1.5 1998/07/09 09:14:04 semper Exp $
Author:
Rolf Michelsen, Stig Mj°lsnes
See Also:
CommerceException

Variable Index

 o CLASSTYPE
Exception code indicating that an object is not of an expected type.
 o DEAL_SET
Exception code indicating an attempt to set the deal attribute of a transaction object when this attribute is already set.
 o DEAL_SETUP
Exception code indicating that the deal object is not properly initialised.
 o MISSING_TRANSACTION
Exception code indicating that a transaction that was expected to exist was not found in the archive.
 o MULTIPLE_ATTACH
Exception code indicating an attempt to attach a Deal object to several Dealstate objects.
 o MULTIPLE_DEALID
Exception code indicating that multiple deals sharing the same deal identifier have been added to the deal directory.
 o NOACCESS
Exception code indicating that an unexpected access violation has occured.
 o TX_NOT_INITIALIZED
Exception code indicating that the TX layer is not completely initialised.
 o UNEXPECTED
Exception code indicate that an unexpected event har been received or an unexpected state entered.

Constructor Index

 o CommerceBug(int)
Creates an exception indicating a bug in the implementation of the commerce layer.

Method Index

 o getCondition()
Returns the identifier for the bug symptom.

Variables

 o MULTIPLE_ATTACH
 public static final int MULTIPLE_ATTACH
Exception code indicating an attempt to attach a Deal object to several Dealstate objects.

 o TX_NOT_INITIALIZED
 public static final int TX_NOT_INITIALIZED
Exception code indicating that the TX layer is not completely initialised. The commerce layer assumes that the TX layer is initialised during startup of the SEMPER system.

 o MULTIPLE_DEALID
 public static final int MULTIPLE_DEALID
Exception code indicating that multiple deals sharing the same deal identifier have been added to the deal directory.

 o NOACCESS
 public static final int NOACCESS
Exception code indicating that an unexpected access violation has occured. The caller of the restricted method is supposed to possess the required access control capability.

 o UNEXPECTED
 public static final int UNEXPECTED
Exception code indicate that an unexpected event har been received or an unexpected state entered.

 o CLASSTYPE
 public static final int CLASSTYPE
Exception code indicating that an object is not of an expected type.

 o MISSING_TRANSACTION
 public static final int MISSING_TRANSACTION
Exception code indicating that a transaction that was expected to exist was not found in the archive.

 o DEAL_SET
 public static final int DEAL_SET
Exception code indicating an attempt to set the deal attribute of a transaction object when this attribute is already set.

 o DEAL_SETUP
 public static final int DEAL_SETUP
Exception code indicating that the deal object is not properly initialised.

Constructors

 o CommerceBug
 public CommerceBug(int bugID)
Creates an exception indicating a bug in the implementation of the commerce layer.

Parameters:
bugID - A code indicating the symptom of the bug.

Methods

 o getCondition
 public int getCondition()
Returns the identifier for the bug symptom. This information can provide additional information about the cause for the bug.

Returns:
The bug symptom identifier.

All Packages  Class Hierarchy  This Package  Previous  Next  Index