1 18 package sync4j.framework.engine; 19 20 import sync4j.framework.core.StatusCode; 22 27 public class SyncException extends java.lang.Exception { 28 29 31 private int statusCode; 32 33 35 public SyncException(String msg) { 36 this(msg, null, StatusCode.PROCESSING_ERROR); 37 } 38 39 public SyncException(String msg, int statusCode) { 40 this(msg, null, statusCode); 41 42 } 43 44 public SyncException(String msg, Throwable cause) { 45 this(msg, cause, StatusCode.PROCESSING_ERROR); 46 } 47 48 public SyncException(String msg, Throwable cause, int statusCode) { 49 super(msg, cause); 50 this.statusCode = statusCode; 51 } 52 53 public SyncException(Throwable cause) { 54 this(cause.getMessage(), cause, StatusCode.PROCESSING_ERROR); 55 } 56 57 59 public int getStatusCode() { 60 return statusCode; 61 } 62 } 63 | Popular Tags |