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
-
CLASSTYPE
- Exception code indicating that an object is not of an expected type.
-
DEAL_SET
- Exception code indicating an attempt to set the
deal
attribute
of a transaction object when this attribute is already set.
-
DEAL_SETUP
- Exception code indicating that the deal object is not properly initialised.
-
MISSING_TRANSACTION
- Exception code indicating that a transaction that was expected to exist was
not found in the archive.
-
MULTIPLE_ATTACH
- Exception code indicating an attempt to attach a
Deal
object
to several Dealstate
objects.
-
MULTIPLE_DEALID
- Exception code indicating that multiple deals sharing the same deal identifier
have been added to the deal directory.
-
NOACCESS
- Exception code indicating that an unexpected access violation has occured.
-
TX_NOT_INITIALIZED
- Exception code indicating that the TX layer is not completely initialised.
-
UNEXPECTED
- Exception code indicate that an unexpected event har been received or an
unexpected state entered.
-
CommerceBug(int)
- Creates an exception indicating a bug in the implementation of the
commerce layer.
-
getCondition()
- Returns the identifier for the bug symptom.
MULTIPLE_ATTACH
public static final int MULTIPLE_ATTACH
- Exception code indicating an attempt to attach a
Deal
object
to several Dealstate
objects.
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.
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.
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.
UNEXPECTED
public static final int UNEXPECTED
- Exception code indicate that an unexpected event har been received or an
unexpected state entered.
CLASSTYPE
public static final int CLASSTYPE
- Exception code indicating that an object is not of an expected type.
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.
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.
DEAL_SETUP
public static final int DEAL_SETUP
- Exception code indicating that the deal object is not properly initialised.
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.
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