summaryrefslogtreecommitdiff
path: root/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java
diff options
context:
space:
mode:
Diffstat (limited to 'SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java')
-rwxr-xr-xSDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java b/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java
deleted file mode 100755
index d31e1f384..000000000
--- a/SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/exception/SmartDeviceLinkException.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.smartdevicelink.exception;
-
-
-public class SmartDeviceLinkException extends Exception {
-
- private static final long serialVersionUID = 5922492291870772815L;
-
- protected Throwable detail = null;
- private SmartDeviceLinkExceptionCause _SmartDeviceLinkExceptionCause = null;
-
- public SmartDeviceLinkException(String msg, SmartDeviceLinkExceptionCause exceptionCause) {
- super(msg);
- _SmartDeviceLinkExceptionCause = exceptionCause;
- }
-
- public SmartDeviceLinkException(String msg, Throwable ex, SmartDeviceLinkExceptionCause exceptionCause) {
- super(msg + " --- Check inner exception for diagnostic details");
- detail = ex;
- _SmartDeviceLinkExceptionCause = exceptionCause;
- }
-
- public SmartDeviceLinkException(Throwable ex) {
- super(ex.getMessage());
- detail = ex;
- }
-
- public SmartDeviceLinkExceptionCause getSmartDeviceLinkExceptionCause() {
- return _SmartDeviceLinkExceptionCause;
- }
-
- public Throwable getInnerException() {
- return detail;
- }
-
- public String toString() {
- String ret = this.getClass().getName();
- ret += ": " + this.getMessage();
- if(this.getSmartDeviceLinkExceptionCause() != null){
- ret += "\nSmartDeviceLinkExceptionCause: " + this.getSmartDeviceLinkExceptionCause().name();
- }
- if (detail != null) {
- ret += "\nnested: " + detail.toString();
- detail.printStackTrace();
- }
- return ret;
- }
-}