
net.jmatrix.exception.JMException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmutils Show documentation
Show all versions of jmutils Show documentation
PerfTrack and Async utilities.
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