Packages

object ResponseError extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseError
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait ErrorBody extends Product with Serializable

    Algebraic Data Type for error response bodies.

    Algebraic Data Type for error response bodies.

    Members include, ErrorBody#FullErrorBody for when the entire error body is smaller than the given max bytes limit, ErrorBody#PartialErrorBody for when the error body is larger than the given max bytes limit, and ErrorBody#EmptyErrorBody for when there is no body or the body's size is 0 bytes.

    Note

    There are a few edge cases here to be aware of. If the error body is exactly the size of the maxBodySize value, then it will be a ErrorBody#PartialErrorBody. This is because it can't be known if there is another byte without reading another byte, which would break the contract of this type. If the maxBodySize is 0L then the result will be a ErrorBody#PartialErrorBody. This is because we were technically able to read the specified max number of bytes. That being said, there is no reason to have maxBodySize be <= 0.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fromResponse[F[_]](requestUri: Option[Uri], requestMethod: Option[Method])(response: Response[F])(implicit C: Compiler[F, F], F: FlatMap[F]): F[Throwable]

    Create a ResponseError which will read, at most, the default number of bytes from the error response, given by ErrorBody#defaultMaxBodySizeBytes.

  9. def fromResponse_[F[_]](maxBodySize: Long, requestUri: Option[Uri], requestMethod: Option[Method])(response: Response[F])(implicit C: Compiler[F, F], F: FlatMap[F]): F[Throwable]

    Create a ResponseError which will read, at most, the given bytes from the error response.

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. object ErrorBody extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped