Class PayloadTooLargeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.pathcreator.pyc.rpc.core.exceptions.RpcException
ru.pathcreator.pyc.rpc.core.exceptions.PayloadTooLargeException
- All Implemented Interfaces:
Serializable
Исключение, которое сигнализирует, что payload превышает лимит канала.
Exception indicating that the payload exceeds the channel limit.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadTooLargeException(int actual, int limit) Создаёт исключение с фактическим размером payload и лимитом. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PayloadTooLargeException
public PayloadTooLargeException(int actual, int limit) Создаёт исключение с фактическим размером payload и лимитом.Creates an exception with the actual payload size and the configured limit.
- Parameters:
actual- фактический размер в байтах / actual payload size in byteslimit- лимит в байтах / maximum allowed size in bytes
-
-
Method Details
-
actual
public int actual()Возвращает фактический размер payload, который был отклонен.Returns the actual payload size that was rejected.
- Returns:
- actual payload size
-
limit
public int limit()Возвращает лимит размера payload для канала.Returns the payload size limit for the channel.
- Returns:
- configured payload size limit
-