Package 

Class ReadError

  • All Implemented Interfaces:
    org.readium.r2.shared.util.Error

    
    public class ReadError
     implements Error
                        

    Errors occurring while reading a resource.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class ReadError.Access

      An error occurred while trying to access the content.

      At the moment, AccessErrors constructed by the toolkit can be either a FileSystemError, a ContentResolverError or an HttpError.

      public final class ReadError.Decoding

      Content doesn't match what was expected and cannot be interpreted.

      For instance, this error can be reported if a ZIP archive looks invalid, a publication doesn't conform to its format, or a JSON resource cannot be decoded.

      public final class ReadError.OutOfMemory

      Content could not be successfully read because there is not enough memory available.

      This error can be produced while trying to put the content into memory or while trying to decode it.

      public final class ReadError.UnsupportedOperation

      An operation could not be performed at some point.

      For instance, this error can occur no matter the level of indirection when trying to read ranges or getting length if any component the data has to pass through doesn't support that.

    • Method Summary

      Modifier and Type Method Description
      String getMessage() An error message.
      Error getCause() The cause error or null if there is none.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait