com.hps.integrator.infrastructure.HpsIssuerException Maven / Gradle / Ivy
package com.hps.integrator.infrastructure;
public class HpsIssuerException extends HpsException {
private int transactionId;
private HpsIssuerExceptionCodes code;
private HpsIssuerExceptionDetails details;
public HpsIssuerException(int transactionId, HpsIssuerExceptionCodes code, String message)
{
super(message);
this.setTransactionId(transactionId);
this.setCode(code);
}
public HpsIssuerException(int transactionId, HpsIssuerExceptionCodes code, String message, Exception e)
{
super(message, e);
this.setTransactionId(transactionId);
this.setCode(code);
}
public HpsIssuerException(int transactionId, HpsIssuerExceptionCodes code, String message, String issuerCode, String issuerMessage)
{
super(message);
this.setTransactionId(transactionId);
this.setCode(code);
HpsIssuerExceptionDetails details = new HpsIssuerExceptionDetails();
details.setIssuerResponseCode(issuerCode);
details.setIssuerResponseText(issuerMessage);
this.setDetails(details);
}
public HpsIssuerException(int transactionId, HpsIssuerExceptionCodes code, String message, String issuerCode, String issuerMessage, Exception e)
{
super(message, e);
this.setTransactionId(transactionId);
this.setCode(code);
HpsIssuerExceptionDetails details = new HpsIssuerExceptionDetails();
details.setIssuerResponseCode(issuerCode);
details.setIssuerResponseText(issuerMessage);
this.setDetails(details);
}
public HpsIssuerExceptionCodes getCode() {
return code;
}
public void setCode(HpsIssuerExceptionCodes code) {
this.code = code;
}
public HpsIssuerExceptionDetails getDetails() {
return details;
}
public void setDetails(HpsIssuerExceptionDetails details) {
this.details = details;
}
public int getTransactionId() {
return transactionId;
}
public void setTransactionId(int transactionId) {
this.transactionId = transactionId;
}
}