diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-02-18 11:01:55 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-02-18 11:01:55 +0100 |
commit | 98cdf5c84739362a2d41702f538c370fa3d2c86e (patch) | |
tree | 41baa19e7b4503a6c53edf3ecbeca5d2ac015ad0 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util | |
parent | 89dc33e5d6053af56a6d2cb11271ab092ced7dc3 (diff) | |
download | moa-id-spss-98cdf5c84739362a2d41702f538c370fa3d2c86e.tar.gz moa-id-spss-98cdf5c84739362a2d41702f538c370fa3d2c86e.tar.bz2 moa-id-spss-98cdf5c84739362a2d41702f538c370fa3d2c86e.zip |
update error handling and Web based error messages
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ErrorResponseUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ErrorResponseUtils.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ErrorResponseUtils.java index 99ac6ba4c..8bd682421 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ErrorResponseUtils.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/ErrorResponseUtils.java @@ -27,6 +27,7 @@ import java.util.Locale; import at.gv.egovernment.moa.id.auth.exception.BKUException; import at.gv.egovernment.moa.id.auth.exception.MISSimpleClientException; import at.gv.egovernment.moa.id.auth.exception.MOAIDException; +import at.gv.egovernment.moa.id.process.ProcessExecutionException; import at.gv.egovernment.moa.util.Messages; import at.gv.egovernment.moa.util.MiscUtil; @@ -78,7 +79,10 @@ public class ErrorResponseUtils { } else if (throwable instanceof MOAIDException) { MOAIDException error = (MOAIDException) throwable; errorCode = mapInternalErrorToExternalError(error.getMessageId()); - + + } else if (throwable instanceof ProcessExecutionException) { + errorCode = "1100"; + } else { errorCode = INTERNALERRORCODE; |