Class PRErrors

java.lang.Object
org.mozilla.jss.nss.PRErrors

public class PRErrors extends Object
This class provides access to useful NSPR errors, getting their values from a JNI call. Note that it *isn't* an enum as the NSPR wrappers return int. This saves us from having to wrap every NSPR error.
  • Field Details

    • WOULD_BLOCK_ERROR

      public static final int WOULD_BLOCK_ERROR
      The call would block. See also: PR_WOULD_BLOCK_ERROR in /usr/include/nspr4/prerr.h
    • SOCKET_SHUTDOWN_ERROR

      public static final int SOCKET_SHUTDOWN_ERROR
      The socket is shutdown. See also: PR_SOCKET_SHUTDOWN_ERROR in /usr/include/nspr4/prerr.h
  • Constructor Details

    • PRErrors

      public PRErrors()
  • Method Details

    • getWouldBlockError

      private static int getWouldBlockError()
    • getSocketShutdownError

      private static int getSocketShutdownError()