Class OcflIOException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OcflFileAlreadyExistsException, OcflNoSuchFileException

public class OcflIOException extends OcflJavaException
This exception is a wrapper around an IOException
See Also:
  • Constructor Details

    • OcflIOException

      public OcflIOException(Exception cause)
    • OcflIOException

      public OcflIOException(String message, Exception cause)
    • OcflIOException

      public OcflIOException(String message)
  • Method Details

    • from

      public static OcflIOException from(IOException e)
      Wraps an IO exception in the appropriate wrapper class. For example, NoSuchFileException to OcflNoSuchFileException.
      Parameters:
      e - the base exception
      Returns:
      wrapped exception
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable