jpos.events.ErrorEvent Maven / Gradle / Ivy
//////////////////////////////////////////////////////////////////////
//
// The JavaPOS library source code is now under the CPL license, which
// is an OSS Apache-like license. The complete license is located at:
// http://www.ibm.com/developerworks/library/os-cpl.html
//
//////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//
// THIS SOFTWARE IS PROVIDED AS IS. THE JAVAPOS WORKING GROUP MAKES NO
// REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
// NON-INFRINGEMENT. INDIVIDUAL OR CORPORATE MEMBERS OF THE JAVAPOS
// WORKING GROUP SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED AS A RESULT
// OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
//
// ErrorEvent
//
// Class defining the Error Event generated by JavaPOS device
// controls.
//
// Modification history
// ------------------------------------------------------------------
// 98-02-18 JavaPOS Release 1.2 BS
//
/////////////////////////////////////////////////////////////////////
package jpos.events;
public class ErrorEvent extends JposEvent
{
private static final long serialVersionUID = -5592973843207584764L;
public ErrorEvent(Object source, int errorCode, int errorCodeExtended,
int errorLocus, int errorResponse)
{
super(source);
this.errorCode = errorCode;
this.errorCodeExtended = errorCodeExtended;
this.errorLocus = errorLocus;
this.errorResponse = errorResponse;
}
public int getErrorCode()
{
return errorCode;
}
public int getErrorCodeExtended()
{
return errorCodeExtended;
}
public int getErrorLocus()
{
return errorLocus;
}
public int getErrorResponse()
{
return errorResponse;
}
public void setErrorResponse(int errorResponse)
{
this.errorResponse = errorResponse;
}
protected int errorCode;
protected int errorCodeExtended;
protected int errorLocus;
protected int errorResponse;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy