ZstdLimitExceededException class
Thrown by decompress when a frame's declared decompressed size exceeds
the caller's maxOutputBytes limit.
This is thrown before any output buffer is allocated, so it also covers
the case where the declared size arrives as a negative number (which can
happen on both native and web — see ZstdSimple.decompress for details).
declaredSize and limit are exposed as plain int fields — not just
folded into ZstdException.message — so callers such as KMDB's quarantine
path can make a decision (quarantine vs. reject) without parsing prose out
of the exception message.
- Inheritance
-
- Object
- ZstdException
- ZstdLimitExceededException
Constructors
- ZstdLimitExceededException(int declaredSize, int limit)
-
Creates a ZstdLimitExceededException for a
declaredSizethat exceededlimit.
Properties
- declaredSize → int
-
The decompressed content size declared in the frame header.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
The
maxOutputByteslimit that declaredSize exceeded.final - message → String
-
The error message describing what went wrong.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited