Package org.zeromq

Enum ZMQ.Error

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZMQ.Error>
    Enclosing class:
    ZMQ

    public static enum ZMQ.Error
    extends java.lang.Enum<ZMQ.Error>
    Resolve code from errornumber.

    Messages are taken from https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html

    • Enum Constant Detail

      • ENOTSUP

        public static final ZMQ.Error ENOTSUP
      • EPROTONOSUPPORT

        public static final ZMQ.Error EPROTONOSUPPORT
      • ENOBUFS

        public static final ZMQ.Error ENOBUFS
      • ENETDOWN

        public static final ZMQ.Error ENETDOWN
      • EADDRINUSE

        public static final ZMQ.Error EADDRINUSE
      • EADDRNOTAVAIL

        public static final ZMQ.Error EADDRNOTAVAIL
      • ECONNREFUSED

        public static final ZMQ.Error ECONNREFUSED
      • EINPROGRESS

        public static final ZMQ.Error EINPROGRESS
      • EHOSTUNREACH

        public static final ZMQ.Error EHOSTUNREACH
      • EMTHREAD

        public static final ZMQ.Error EMTHREAD
      • ENOCOMPATPROTO

        public static final ZMQ.Error ENOCOMPATPROTO
      • ENOTSOCK

        public static final ZMQ.Error ENOTSOCK
      • EAGAIN

        public static final ZMQ.Error EAGAIN
      • ENOENT

        public static final ZMQ.Error ENOENT
      • EACCESS

        public static final ZMQ.Error EACCESS
      • EFAULT

        public static final ZMQ.Error EFAULT
      • EINVAL

        public static final ZMQ.Error EINVAL
      • EISCONN

        public static final ZMQ.Error EISCONN
      • ENOTCONN

        public static final ZMQ.Error ENOTCONN
      • EMSGSIZE

        public static final ZMQ.Error EMSGSIZE
      • EAFNOSUPPORT

        public static final ZMQ.Error EAFNOSUPPORT
      • ENETUNREACH

        public static final ZMQ.Error ENETUNREACH
      • ECONNABORTED

        public static final ZMQ.Error ECONNABORTED
      • ECONNRESET

        public static final ZMQ.Error ECONNRESET
      • ETIMEDOUT

        public static final ZMQ.Error ETIMEDOUT
      • ENETRESET

        public static final ZMQ.Error ENETRESET
      • EIOEXC

        public static final ZMQ.Error EIOEXC
      • ESOCKET

        public static final ZMQ.Error ESOCKET
      • EMFILE

        public static final ZMQ.Error EMFILE
      • EPROTO

        public static final ZMQ.Error EPROTO
    • Field Detail

      • map

        private static final java.util.Map<java.lang.Integer,​ZMQ.Error> map
      • code

        private final int code
      • message

        private final java.lang.String message
    • Constructor Detail

      • Error

        private Error​(int code)
      • Error

        private Error​(int code,
                      java.lang.String message)
    • Method Detail

      • values

        public static ZMQ.Error[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZMQ.Error c : ZMQ.Error.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZMQ.Error valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • findByCode

        public static ZMQ.Error findByCode​(int code)
      • getCode

        public int getCode()
      • getMessage

        public java.lang.String getMessage()