public interface ArmErrorCallback
ArmErrorCallback
is different from all the other ARM
interfaces because instead of the ARM implementation creating objects
that implement the interface, the application creates an object that
implements it. The application can create an
ArmErrorCallback
and register it with the
setErrorCallback()
method of one of the ARM factory classes.
If the registration is accepted, anytime a method results in an error,
the ARM implementation:
getErrorCode()
method of ArmInterface
,
from which all other ARM interfaces with methods derive.
errorCodeSet()
in ArmErrorCallback
,
if an ArmErrorCallback has been successfully registered.
errorCodeSet()
.
Examples of things a callback method may do are:
Modifier and Type | Method and Description |
---|---|
void |
errorCodeSet(ArmInterface errorObject,
java.lang.String interfaceName,
java.lang.String methodName)
Callback method called by the ARM implementation.
|
void errorCodeSet(ArmInterface errorObject, java.lang.String interfaceName, java.lang.String methodName)
null
values.errorObject
- a reference to the ARM implementation's object
that detected the error. The callback method can use the
getErrorCode()
of errorObject
to get the
error code value, which will be negative.interfaceName
- the name of an interface in one of the ARM
specification packages.methodName
- the name of a method in that interface.