| @@ -7,6 +7,7 @@ public enum BroadcastError | |||||
| BAD_REQUEST_DATA, | BAD_REQUEST_DATA, | ||||
| INTERNAL_ERROR, | INTERNAL_ERROR, | ||||
| CONFIGURAION_ERROR, | CONFIGURAION_ERROR, | ||||
| SERVICE_PROVIDER_ERROR, | |||||
| PLATFORM_ERROR | PLATFORM_ERROR | ||||
| } | } | ||||
| @@ -17,6 +17,12 @@ public class BroadcastException extends EngineException | |||||
| this.errorCode = errorCode; | this.errorCode = errorCode; | ||||
| } | } | ||||
| public BroadcastException(BroadcastError errorCode, Throwable t) | |||||
| { | |||||
| super(errorCode.toString(), t.getMessage(), t); | |||||
| this.errorCode = errorCode; | |||||
| } | |||||
| /* | /* | ||||
| public BroadcastException(Broadcast broadcast, BroadcastError errorCode, String errorText) | public BroadcastException(Broadcast broadcast, BroadcastError errorCode, String errorText) | ||||
| { | { | ||||
| @@ -4,7 +4,6 @@ package altk.comm.engine.exception; | |||||
| @SuppressWarnings("serial") | @SuppressWarnings("serial") | ||||
| public class BroadcastMsgException extends BroadcastException | public class BroadcastMsgException extends BroadcastException | ||||
| { | { | ||||
| public BroadcastMsgException(String errorText) | public BroadcastMsgException(String errorText) | ||||
| { | { | ||||
| this(errorText, null); | this(errorText, null); | ||||
| @@ -14,17 +13,5 @@ public class BroadcastMsgException extends BroadcastException | |||||
| { | { | ||||
| super(BroadcastError.BAD_REQUEST_DATA, errorText, t); | super(BroadcastError.BAD_REQUEST_DATA, errorText, t); | ||||
| } | } | ||||
| /* | |||||
| public BroadcastMsgException(Broadcast broadcast, String errorText) | |||||
| { | |||||
| super(broadcast, BroadcastError.BAD_REQUEST_DATA, errorText); | |||||
| } | |||||
| public BroadcastMsgException(Broadcast broadcast, String errorText, Throwable t) | |||||
| { | |||||
| super(broadcast, BroadcastError.BAD_REQUEST_DATA, errorText, t); | |||||
| } | |||||
| */ | |||||
| } | } | ||||
| @@ -13,11 +13,6 @@ public abstract class EngineException extends Exception | |||||
| public final String errorCodeText; | public final String errorCodeText; | ||||
| public final String errorText; | public final String errorText; | ||||
| public EngineException(String errorCodeText, String errorText) | |||||
| { | |||||
| this(errorCodeText, errorText, null); | |||||
| } | |||||
| public EngineException(String errorCodeText, String errorText, Throwable cause) | public EngineException(String errorCodeText, String errorText, Throwable cause) | ||||
| { | { | ||||
| super(errorCodeText + ": " + errorText, cause); | super(errorCodeText + ": " + errorText, cause); | ||||