org.zeromq.ZMQException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeromq Show documentation
Show all versions of jeromq Show documentation
Pure Java implementation of libzmq
The newest version!
package org.zeromq;
import zmq.ZError;
public class ZMQException extends UncheckedZMQException
{
private static final long serialVersionUID = -978820750094924644L;
private final int code;
public ZMQException(int errno)
{
super("Errno " + errno);
code = errno;
}
public ZMQException(String message, int errno)
{
super(message);
code = errno;
}
public ZMQException(String message, int errno, Throwable cause)
{
super(message, cause);
code = errno;
}
public int getErrorCode()
{
return code;
}
@Override
public String toString()
{
return super.toString() + " : " + ZError.toString(code);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy