diff options
Diffstat (limited to 'mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions')
9 files changed, 0 insertions, 354 deletions
diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLBindingException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLBindingException.java deleted file mode 100644 index 3f1732ba..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLBindingException.java +++ /dev/null @@ -1,31 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-/**
- * Error in the binding to the transport protocol (2xxx)
- */
-public class SLBindingException extends SLException {
-
- public SLBindingException(int errorCode) {
- super(errorCode);
- }
-
- public SLBindingException(int errorCode, String msg, Object[] args) {
- super(errorCode, msg, args);
- }
-}
\ No newline at end of file diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCanceledException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCanceledException.java deleted file mode 100644 index 8136a093..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCanceledException.java +++ /dev/null @@ -1,26 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-public class SLCanceledException extends
- at.gv.egiz.bku.slexceptions.SLException {
-
- public SLCanceledException(int errorCode, String msg, Object[] args) {
- super(errorCode, msg, args);
- // TODO Auto-generated constructor stub
- }
-}
\ No newline at end of file diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCommandException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCommandException.java deleted file mode 100644 index 73ae3325..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLCommandException.java +++ /dev/null @@ -1,30 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-public class SLCommandException extends at.gv.egiz.bku.slexceptions.SLException {
-
- private static final long serialVersionUID = 1L;
-
- public SLCommandException(int errorCode) {
- super(errorCode);
- }
-
- public SLCommandException(int errorCode, String msg, Object[] args) {
- super(errorCode, msg, args);
- }
-}
\ No newline at end of file diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLException.java deleted file mode 100644 index 4b541deb..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLException.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-import java.text.MessageFormat;
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class SLException extends Exception {
-
- private static String RESOURCE_BUNDLE_BASE_NAME = "at.gv.egiz.bku.slexceptions.SLExceptionMessages";
-
- private static String MISSING_RESOURCE_PATTERN = "MISSING RESOURCE FOR ERROR MESSAGE: {0} ({1})";
-
- private static String ILLEGAL_ARGUMENT_MESSAGE = "MESSAGE FORMAT FAILED";
-
- private static final long serialVersionUID = 1L;
-
- private int errorCode;
-
- private String message;
-
- private Object[] arguments;
-
- public SLException(int errorCode) {
- this.errorCode = errorCode;
- this.message = SLExceptionMessages.STANDARD_PREFIX + Integer.toString(errorCode);
- }
-
- public SLException(int errorCode, String message, Object[] arguments) {
- this.errorCode = errorCode;
- this.message = message;
- this.arguments = arguments;
- }
-
- public int getErrorCode() {
- return errorCode;
- }
-
- public String getDetailedMsg() {
- return getLocalizedMessage();
- }
-
- @Override
- public String getLocalizedMessage() {
- return getLocalizedMessage(Locale.getDefault());
- }
-
- public String getLocalizedMessage(Locale locale) {
-
- String pattern;
- Object[] arguments = this.arguments;
- try {
- ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_BUNDLE_BASE_NAME, locale);
- pattern = bundle.getString(message);
- } catch (MissingResourceException e) {
- pattern = MISSING_RESOURCE_PATTERN;
- arguments = new Object[]{message, e.getMessage()};
- }
-
- String localizedMessage;
- try {
- localizedMessage = MessageFormat.format(pattern, arguments);
- } catch (IllegalArgumentException e) {
- localizedMessage = ILLEGAL_ARGUMENT_MESSAGE + ": " + pattern;
- }
-
- return localizedMessage;
-
- }
-
-
-}
\ No newline at end of file diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLExceptionMessages.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLExceptionMessages.java deleted file mode 100644 index 73ac8d1b..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLExceptionMessages.java +++ /dev/null @@ -1,56 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions; - -public final class SLExceptionMessages { - - private SLExceptionMessages() { - } - - public static final String STANDARD_PREFIX = "ec"; - - // - // 3xxx - // - // Error in the XML structure of the command request - - public static final String EC3000_UNCLASSIFIED = "ec3000.unclassified"; - - public static final String EC3002_INVALID = "ec3002.invalid"; - - // - // 4xxx - // - // Error during command execution - - public static final String EC4000_UNCLASSIFIED_INFOBOX_INVALID = "ec4000.infobox.invalid"; - - public static final String EC4000_UNCLASSIFIED_IDLINK_TRANSFORMATION_FAILED = "ec4000.idlink.transfomation.failed"; - - public static final String EC4002_INFOBOX_UNKNOWN = "ec4002.infobox.unknown"; - - public static final String EC4003_NOT_RESOLVED = "ec4003.not.resolved"; - - public static final String EC4011_NOTIMPLEMENTED = "ec4011.notimplemented"; - - // - // Legacy error codes - // - - public static final String LEC2901_NOTIMPLEMENTED = "lec2901.notimplemented"; - -} diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRequestException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRequestException.java deleted file mode 100644 index 548732e6..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRequestException.java +++ /dev/null @@ -1,30 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-public class SLRequestException extends SLException {
-
- public SLRequestException(int errorCode) {
- super(errorCode);
- // TODO Auto-generated constructor stub
- }
-
- public SLRequestException(int errorCode, String msg, Object[] args) {
- super(errorCode, msg, args);
- // TODO Auto-generated constructor stub
- }
-}
\ No newline at end of file diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRuntimeException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRuntimeException.java deleted file mode 100644 index d09ca418..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLRuntimeException.java +++ /dev/null @@ -1,37 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-public class SLRuntimeException extends RuntimeException {
-
- public SLRuntimeException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public SLRuntimeException(String message) {
- super(message);
- }
-
- public SLRuntimeException(Throwable cause) {
- super(cause);
- }
-
- public SLRuntimeException() {
- }
-
-
-}
diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLVersionException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLVersionException.java deleted file mode 100644 index 45501746..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLVersionException.java +++ /dev/null @@ -1,28 +0,0 @@ -package at.gv.egiz.bku.slexceptions; - -public class SLVersionException extends SLException { - - private static final long serialVersionUID = 1L; - - protected String namespaceURI; - - public SLVersionException(String namespaceURI) { - super(2901, SLExceptionMessages.LEC2901_NOTIMPLEMENTED, new Object[] {namespaceURI}); - this.namespaceURI = namespaceURI; - } - - public SLVersionException(int errorCode, String namespaceURI) { - super(errorCode); - this.namespaceURI = namespaceURI; - } - - public SLVersionException(int errorCode, String namespaceURI, String message, Object[] arguments) { - super(errorCode, message, arguments); - this.namespaceURI = namespaceURI; - } - - public String getNamespaceURI() { - return namespaceURI; - } - -} diff --git a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLViewerException.java b/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLViewerException.java deleted file mode 100644 index 853328d5..00000000 --- a/mocca-1.2.11/bkucommon/src/main/java/at/gv/egiz/bku/slexceptions/SLViewerException.java +++ /dev/null @@ -1,28 +0,0 @@ -/* -* Copyright 2008 Federal Chancellery Austria and -* Graz University of Technology -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -package at.gv.egiz.bku.slexceptions;
-
-public class SLViewerException extends SLException {
- - public SLViewerException(int errorCode) { - super(errorCode); - } - - public SLViewerException(int errorCode, String msg, Object[] args) {
- super(errorCode, msg, args);
- }
-}
\ No newline at end of file |