Class PointCardRWErrorEvent
java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.ErrorEvent
de.gmxhome.conrad.jpos.jpos_base.JposErrorEvent
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWErrorEvent
- All Implemented Interfaces:
Serializable
Error event implementation for PointCardRW devices.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionInteger[]Array containing the length in bytes of the 6 tracks to be stored i RecvLength1 and RecvLength2.Integer[]Array containing the state values of the 6 tracks to be stored in ReadState1 and ReadState2.String[]Array containing 6 Strings with track data.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposErrorEvent
MessageFields inherited from class jpos.events.ErrorEvent
errorCode, errorCodeExtended, errorLocus, errorResponseFields inherited from class jpos.events.JposEvent
sequenceNumberFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPointCardRWErrorEvent(JposBase source, int errorcode, int extended, String[] tracks, Integer[]... statelength)Constructor.PointCardRWErrorEvent(JposBase source, int errorcode, int extended, String message, Integer[] state)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the error properties stored within the JposErrorEvent into the JposCommonProperties object stored in Source.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposErrorEvent
clear, getInputDataErrorEvent, getPropertySet, setErrorResponse, toLogStringMethods inherited from class jpos.events.ErrorEvent
getErrorCode, getErrorCodeExtended, getErrorLocus, getErrorResponseMethods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumberMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
Tracks
Array containing 6 Strings with track data. Empty strings if a track has not been read. -
State
Array containing the state values of the 6 tracks to be stored in ReadState1 and ReadState2. -
Length
Array containing the length in bytes of the 6 tracks to be stored i RecvLength1 and RecvLength2.
-
-
Constructor Details
-
PointCardRWErrorEvent
public PointCardRWErrorEvent(JposBase source, int errorcode, int extended, String[] tracks, Integer[]... statelength)Constructor. Parameters passed to base class unchanged. For input error events, contains tracks read.- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.errorcode- ErrorCode, see UPOS specification, chapter Common Properties, Methods, and Events - Events - ErrorEvent.extended- ErrorCodeExtended, see UPOS specification, chapter Common Properties, Methods, and Events - Events - ErrorEvent.tracks- Array containing track data of tracks 0-6, an empty string for unreadable tracks.statelength- Arrays containing states of tracks read and optional lengths of tracks in bytes. If lengths are not specified, length will be computed from the string lengths stored in tracks.
-
PointCardRWErrorEvent
public PointCardRWErrorEvent(JposBase source, int errorcode, int extended, String message, Integer[] state)Constructor. Parameters passed to base class unchanged. For output error events, contains write states- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.errorcode- ErrorCode, see UPOS specification, chapter Common Properties, Methods, and Events - Events - ErrorEvent.extended- ErrorCodeExtended, see UPOS specification, chapter Common Properties, Methods, and Events - Events - ErrorEvent.message- Error message from exception.state- Status for written tracks, one value per track. null for unmodified tracks.
-
-
Method Details
-
setErrorProperties
public void setErrorProperties()Description copied from class:JposErrorEventSets the error properties stored within the JposErrorEvent into the JposCommonProperties object stored in Source. The corresponding properties must be defined within derived classes.- Overrides:
setErrorPropertiesin classJposErrorEvent
-