Browse Source

Improved organization of broadcast exceptions.

tags/Production_2014_08_28
ymlam 11 years ago
parent
commit
d6d08d14ef
4 changed files with 8 additions and 19 deletions
  1. +2
    -1
      src/altk/comm/engine/exception/BroadcastError.java
  2. +6
    -0
      src/altk/comm/engine/exception/BroadcastException.java
  3. +0
    -13
      src/altk/comm/engine/exception/BroadcastMsgException.java
  4. +0
    -5
      src/altk/comm/engine/exception/EngineException.java

+ 2
- 1
src/altk/comm/engine/exception/BroadcastError.java View File

@@ -7,6 +7,7 @@ public enum BroadcastError
BAD_REQUEST_DATA,
INTERNAL_ERROR,
CONFIGURAION_ERROR,
SERVICE_PROVIDER_ERROR,
PLATFORM_ERROR
}

+ 6
- 0
src/altk/comm/engine/exception/BroadcastException.java View File

@@ -17,6 +17,12 @@ public class BroadcastException extends EngineException
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)
{


+ 0
- 13
src/altk/comm/engine/exception/BroadcastMsgException.java View File

@@ -4,7 +4,6 @@ package altk.comm.engine.exception;
@SuppressWarnings("serial")
public class BroadcastMsgException extends BroadcastException
{

public BroadcastMsgException(String errorText)
{
this(errorText, null);
@@ -14,17 +13,5 @@ public class BroadcastMsgException extends BroadcastException
{
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);
}
*/

}

+ 0
- 5
src/altk/comm/engine/exception/EngineException.java View File

@@ -13,11 +13,6 @@ public abstract class EngineException extends Exception
public final String errorCodeText;
public final String errorText;

public EngineException(String errorCodeText, String errorText)
{
this(errorCodeText, errorText, null);
}

public EngineException(String errorCodeText, String errorText, Throwable cause)
{
super(errorCodeText + ": " + errorText, cause);


Loading…
Cancel
Save