CustomXException.java
748 Bytes
package com.objecteye.exception;
import java.util.Map;
/**
* custom exception which handles custom request error.
*/
public class CustomXException extends RuntimeException {
private String msg;
private String code;
private Map<String, Object> params = null;
public CustomXException(String msg, String code, Map<String, Object> params) {
this.code = code;
this.msg = msg;
this.params = params;
}
public CustomXException(String msg, String code) {
this.code = code;
this.msg = msg;
}
public String getCode() {
return code;
}
public String getMsg() {
return msg;
}
public Map<String, Object> getParams() {
return params;
}
}