All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jmatrix.exception.JMException Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package net.jmatrix.exception;

public class JMException extends Exception
{

    public JMException(ErrorCode ec, String msg)
    {
        this(ec, msg, null);
    }
    
    public JMException(ErrorCode ec, String msg, Throwable t)
    {
        super(msg, t);
        setErrorCode(ec);
    }

    protected ErrorCode errorCode;

    public ErrorCode getErrorCode()
    {
        return errorCode;
    }

    protected void setErrorCode(ErrorCode errorCode)
    {
        this.errorCode = errorCode;
    }
    
    public enum ErrorCode {
        INVALID_FUTURE, 
        INTERRUPTED_ERROR, 
        NOT_INITIIALIZED
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy