package com.elab.core.exception;

/**
 * 业务异常标识
 *
 * @author liuhx on 2016/12/8 15:57
 * @version V1.0
 * @email liuhx@elab-plus.com
 */
public class BusinessException extends RuntimeException {

    private String errorCode;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
