c

akka.http.scaladsl.model

EntityStreamSizeException

final case class EntityStreamSizeException(limit: Long, actualSize: Option[Long] = None) extends RuntimeException with Product with Serializable

This exception is thrown when the size of the HTTP Entity exceeds the configured limit. It is possible to configure the limit using configuration options akka.http.parsing.max-content-length or specifically for the server or client side by setting akka.http.[server|client].parsing.max-content-length.

The limit can also be configured in code, by calling HttpEntity#withSizeLimit on the entity before materializing its dataBytes stream.

Source
ErrorInfo.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EntityStreamSizeException
  2. Serializable
  3. Product
  4. Equals
  5. RuntimeException
  6. Exception
  7. Throwable
  8. Serializable
  9. AnyRef
  10. Any
Implicitly
  1. by RichException
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EntityStreamSizeException(limit: Long, actualSize: Option[Long] = None)

Value Members

  1. val actualSize: Option[Long]
  2. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  3. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  4. def getCause(): Throwable
    Definition Classes
    Throwable
  5. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  6. def getMessage(): String
    Definition Classes
    EntityStreamSizeException → Throwable
  7. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  8. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  9. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  10. val limit: Long
  11. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  12. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  13. def printStackTrace(): Unit
    Definition Classes
    Throwable
  14. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  15. def toString(): String
    Definition Classes
    EntityStreamSizeException → Throwable → AnyRef → Any

Deprecated Value Members

  1. def getStackTraceString: String
    Implicit
    This member is added by an implicit conversion from EntityStreamSizeException to RichException performed by method RichException in scala.Predef.
    Definition Classes
    RichException
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use Throwable#getStackTrace