Package akka.http.scaladsl.model
Class EntityStreamSizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- akka.http.scaladsl.model.EntityStreamSizeException
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
public final class EntityStreamSizeException extends java.lang.RuntimeException implements scala.Product, java.io.SerializableThis exception is thrown when the size of the HTTP Entity exceeds the configured limit. It is possible to configure the limit using configuration optionsakka.http.parsing.max-content-lengthor specifically for the server or client side by settingakka.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 itsdataBytesstream.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityStreamSizeException(long limit, scala.Option<java.lang.Object> actualSize)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description scala.Option<java.lang.Object>actualSize()abstract static Rapply(T1 v1, T2 v2)java.lang.StringgetMessage()longlimit()java.lang.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2)
-
limit
public long limit()
-
actualSize
public scala.Option<java.lang.Object> actualSize()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-