object ResponseError extends Serializable
- Alphabetic
- By Inheritance
- ResponseError
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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
maxBodySizevalue, 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 themaxBodySizeis0Lthen 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 havemaxBodySizebe <= 0.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object ErrorBody extends Serializable