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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EntityStreamSizeException
- Serializable
- Product
- Equals
- RuntimeException
- Exception
- Throwable
- Serializable
- AnyRef
- Any
Implicitly
- by RichException
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val actualSize: Option[Long]
-
final
def
addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
-
def
fillInStackTrace(): Throwable
- Definition Classes
- Throwable
-
def
getCause(): Throwable
- Definition Classes
- Throwable
-
def
getLocalizedMessage(): String
- Definition Classes
- Throwable
-
def
getMessage(): String
- Definition Classes
- EntityStreamSizeException → Throwable
-
def
getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
-
final
def
getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
-
def
initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
- val limit: Long
-
def
printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(): Unit
- Definition Classes
- Throwable
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
-
def
toString(): String
- Definition Classes
- EntityStreamSizeException → Throwable → AnyRef → Any
Deprecated Value Members
-
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