package com.liquidnet.service.account.exception;

public class FinaccountException extends RuntimeException {
    private static final long serialVersionUID = 918881476056655939L;
    private String errorCode;
    private String errorMsg;

    public String getErrorCode() {
        return errorCode;
    }

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

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public FinaccountException(String errorCode, String errorMsg) {
        super("[" + errorCode + "]" + errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public FinaccountException() {
        super();
        // TODO Auto-generated constructor stub
    }

    public FinaccountException(String message, Throwable cause) {
        super(message, cause);
        // TODO Auto-generated constructor stub
    }

    public FinaccountException(String message) {
        super(message);
        // TODO Auto-generated constructor stub
    }

    public FinaccountException(Throwable cause) {
        super(cause);
        // TODO Auto-generated constructor stub
    }
}
