diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-10-01 14:18:25 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-10-01 14:18:25 +0200 |
commit | a49bdd53d713a73f706d120f3e386a1ed71ae67e (patch) | |
tree | 55160b6d3157e29460c215fa40afccfe5731df5a /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java | |
parent | 1dbab6b07a8996a7f291e0ddc4b02c0d3e15a64d (diff) | |
download | moa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.tar.gz moa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.tar.bz2 moa-id-spss-a49bdd53d713a73f706d120f3e386a1ed71ae67e.zip |
@MOA-ID ConfigWebTool:
--update commercial-register number input validator
--some short bugfixes
@MOA-ID:
--update advanced statistic logger
--Move Exception classes to a special package
--add to Exception types
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java new file mode 100644 index 000000000..28012af07 --- /dev/null +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/exception/MISSimpleClientException.java @@ -0,0 +1,72 @@ +/* + * Copyright 2003 Federal Chancellery Austria + * MOA-ID has been developed in a cooperation between BRZ, the Federal + * Chancellery Austria - ICT staff unit, and Graz University of Technology. + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://www.osor.eu/eupl/ + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + * + * This product combines work with different licenses. See the "NOTICE" text + * file for details on the various modules and licenses. + * The "NOTICE" text file is part of the distribution. Any derivative works + * that you distribute must include a readable copy of the "NOTICE" text file. + */ + + +package at.gv.egovernment.moa.id.auth.exception;
+
+public class MISSimpleClientException extends MOAIDException {
+
+ private static final long serialVersionUID = 1L;
+ + private String misErrorCode; + private String misErrorMessage; +
+ public MISSimpleClientException() { + super("UNDEFINED ERROR", null);
+ }
+
+ public MISSimpleClientException(String message) {
+ super(message, null); + this.misErrorMessage = message;
+ } + + public MISSimpleClientException(String message, String code, String text) { + super(message, null); + this.misErrorMessage = text; + this.misErrorCode = code; + }
+
+ public MISSimpleClientException(Throwable cause) {
+ super("UNDEFINED ERROR", null, cause);
+ }
+
+ public MISSimpleClientException(String message, Throwable cause) {
+ super(message, null, cause); + this.misErrorMessage = message;
+ }
+ + /** + * @return the bkuErrorCode + */ + public String getMISErrorCode() { + return misErrorCode; + } + + + /** + * @return the bkuErrorMessage + */ + public String getMISErrorMessage() { + return misErrorMessage; + }
+}
\ No newline at end of file |