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
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EntityStreamSizeException
  2. Product
  3. Equals
  4. RuntimeException
  5. Exception
  6. Throwable
  7. Serializable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 productElementNames: Iterator[String]
    Definition Classes
    Product
  15. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  16. def toString(): String
    Definition Classes
    EntityStreamSizeException → Throwable → AnyRef → Any