Class EntityStreamSizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.pekko.http.scaladsl.model.EntityStreamSizeException
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
public final class EntityStreamSizeException
extends RuntimeException
implements scala.Product, 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 
pekko.http.parsing.max-content-length
 or specifically for the server or client side by setting pekko.http.[server|client].parsing.max-content-length.
 
 The limit can also be configured in code, by calling HttpEntity.withSizeLimit(long)
 on the entity before materializing its dataBytes stream.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
EntityStreamSizeException
 
- 
- 
Method Details- 
applypublic abstract static R apply(T1 v1, T2 v2) 
- 
limitpublic long limit()
- 
actualSize
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
toString
 
-