Package libcore.io

Class ErrnoException

All Implemented Interfaces:
Serializable

public final class ErrnoException
extends Exception
A checked exception thrown when Os methods fail. This exception contains the native errno value, for comparison against the constants in OsConstants, should sophisticated callers need to adjust their behavior based on the exact failure.
See Also:
Serialized Form
  • Field Details

    • errno

      public final int errno
  • Constructor Details

    • ErrnoException

      public ErrnoException​(String functionName, int errno)
    • ErrnoException

      public ErrnoException​(String functionName, int errno, Throwable cause)
  • Method Details