Class POSPrinterErrorEvent
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.posprinter.POSPrinterErrorEvent
- All Implemented Interfaces:
Serializable
POSPrinter error event class. Holds print station,error level and error message.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionintError level.intPrinter station.Error message.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
ConstructorsConstructorDescriptionPOSPrinterErrorEvent(JposBase source, int errorcode, int extended, int station, int level, String text)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the error properties stored within the JposErrorEvent into the JposCommonProperties object stored in Source.Generates string describing the error event for logging purposes.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposErrorEvent
clear, getInputDataErrorEvent, getPropertySet, setErrorResponseMethods 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
-
Station
public final int StationPrinter station. In case of asynchronous processing, this value will be passed to the ErrorStation property. -
Level
public final int LevelError level. In case of asynchronous processing, this value will be passed to the ErrorLevel property. -
Text
Error message. In case of asynchronous processing, this value will be passed to ErrorString property.
-
-
Constructor Details
-
POSPrinterErrorEvent
public POSPrinterErrorEvent(JposBase source, int errorcode, int extended, int station, int level, String text)Constructor. Parameters passed to base class unchanged.- Parameters:
source- Source, for services implemented with this framework, the (posprinter.)POSPrinterService object.errorcode- Error code.extended- Extended errorcode.level- Error level. Value to be stored in property ErrorLevel.station- Error station. Value to be stored in property ErrorStation.text- Error description. Value to be stored in property ErrorString.
-
-
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
-
toLogString
Description copied from class:JposErrorEventGenerates string describing the error event for logging purposes.- Overrides:
toLogStringin classJposErrorEvent- Returns:
- Describing string.
-