From c68914663440c9f7c0808d965b901acf5df0194d Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Mon, 20 Oct 2014 12:16:04 +0200 Subject: Extract MOA error codes, log generic error message --- .../pdfas/common/exceptions/PdfAsMOAException.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'pdf-as-common/src/main') 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 index 1e602388..e9ab5a9d 100644 --- 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 @@ -49,4 +49,36 @@ public class PdfAsMOAException extends PdfAsException { protected String localizeMessage(String msgId) { return String.format(MessageResolver.resolveMessage(msgId), errorResponse, errorCode, faultCode, faultString); } + + public String getFaultCode() { + return faultCode; + } + + public void setFaultCode(String faultCode) { + this.faultCode = faultCode; + } + + public String getFaultString() { + return faultString; + } + + public void setFaultString(String faultString) { + this.faultString = faultString; + } + + public String getErrorResponse() { + return errorResponse; + } + + public void setErrorResponse(String errorResponse) { + this.errorResponse = errorResponse; + } + + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } } -- cgit v1.2.3