From e5316db083e46c8ae9e4b07bff57812d9314200b Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 12 Dec 2013 17:00:00 +0100 Subject: MOA SS integration OK --- .../pdfas/common/exceptions/PdfAsMOAException.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsMOAException.java (limited to 'pdf-as-common/src/main/java/at') diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsMOAException.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsMOAException.java new file mode 100644 index 00000000..7350680d --- /dev/null +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsMOAException.java @@ -0,0 +1,29 @@ +package at.gv.egiz.pdfas.common.exceptions; + +import at.gv.egiz.pdfas.common.messages.MessageResolver; + +public class PdfAsMOAException extends PdfAsException { + + /** + * + */ + private static final long serialVersionUID = -217112433494784615L; + + private String faultCode; + private String faultString; + private String errorResponse; + private String errorCode; + + public PdfAsMOAException(String faultCode, String faultString, String errorResponse, String errorCode) { + super("error.pdf.io.06"); + this.faultCode = faultCode; + this.faultString = faultString; + this.errorResponse = errorResponse; + this.errorCode = errorCode; + } + + @Override + protected String localizeMessage(String msgId) { + return String.format(MessageResolver.resolveMessage(msgId), errorResponse, errorCode, faultCode, faultString); + } +} -- cgit v1.2.3