public class TimException extends Exception
Constructor and Description |
---|
TimException(ResultCode resultCode)
Create exception.
|
TimException(ResultCode resultCode,
String errorMessage,
NativeError nativeError,
PpInfo ppInfo,
Map<String,String> additionalErrorInfo,
PrintData printData,
Basket rejectedBasket)
Create exception.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAdditionalErrorInfo()
Additional error information mapping error text to error type.
|
String |
getErrorMessage()
Error message in the ECR language.
|
String |
getLocalizedMessage()
Localized error message.
|
String |
getMessage()
Get error message.
|
NativeError |
getNativeError()
Native error if present.
|
PpInfo |
getPpInfo()
Payment protocol specific information.
|
PrintData |
getPrintData()
The tag
|
Basket |
getRejectedBasket()
Rejected basket as modified by host or null if absent.
|
ResultCode |
getResultCode()
Contains the result code with the error.
|
String |
toString()
String representation for debugging purpose.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public TimException(ResultCode resultCode)
public TimException(ResultCode resultCode, String errorMessage, NativeError nativeError, PpInfo ppInfo, Map<String,String> additionalErrorInfo, PrintData printData, Basket rejectedBasket)
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String getMessage()
getMessage
in class Throwable
public ResultCode getResultCode()
public String getErrorMessage()
public NativeError getNativeError()
public PpInfo getPpInfo()
public Map<String,String> getAdditionalErrorInfo()
public PrintData getPrintData()
The tag
Optional: Mandatory if declined receipts are enabled and any receipt data available.
public Basket getRejectedBasket()
Guides.PETROL
only.