Package io.micronaut.http.cookie
Class CookieSizeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.http.exceptions.HttpException
io.micronaut.http.cookie.CookieSizeExceededException
- All Implemented Interfaces:
Serializable
Exception thrown when attempting to set a cookie with a size higher than the cookie size limit.
- Since:
- 4.9.1
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCookie Name.int
Max Cookie Size Bytes.int
getSize()
Cookie Size Bytes.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CookieSizeExceededException
- Parameters:
cookieName
- Cookie NamemaxSize
- Max Cookie Size Bytessize
- Cookie Size Bytes
-
-
Method Details
-
getCookieName
Cookie Name.- Returns:
- Cookie Name
-
getMaxSize
public int getMaxSize()Max Cookie Size Bytes.- Returns:
- Max Cookie Size Bytes
-
getSize
public int getSize()Cookie Size Bytes.- Returns:
- Cookie Size Bytes
-