MaxUploadSizeExceededException class

Exception thrown when the total upload size exceeds the allowed maximum.

This is useful when enforcing global size constraints for multipart uploads.


Example:

if (totalSize > maxAllowed) {
  throw MaxUploadSizeExceededException(maxAllowed, totalSize);
}
Inheritance
Implemented types

Constructors

MaxUploadSizeExceededException(int maxUploadSize, int actualSize, {Map<String, dynamic>? details, Exception? originalException, StackTrace? originalStackTrace, int statusCode = 500, Uri? uri})
Exception thrown when the total upload size exceeds the allowed maximum.

Properties

actualSize int
The actual upload size in bytes.
final
cause Object?
The underlying cause of this exception, if any.
finalinherited
details Map<String, dynamic>?
Additional contextual information about the error.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
maxUploadSize int
The configured maximum upload size limit in bytes.
final
message String
The message describing the error.
finalinherited
originalException Exception?
The underlying exception that caused this FluxException.
finalinherited
originalStackTrace StackTrace?
The stack trace from the original exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The associated stack trace.
finalinherited
statusCode int
The HTTP status code returned by the server, when applicable.
finalinherited
uri Uri?
The URI of the HTTP request that triggered this exception.
finalinherited

Methods

getCause() Object
The cause of this exception, if any.
inherited
getMessage() String
The message associated with this exception.
inherited
getStackTrace() StackTrace
The stack trace associated with this exception.
inherited
getStatus() HttpStatus
Resolves the corresponding HttpStatus for this object, if available.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
inherited
toMap() Map<String, dynamic>
Converts this exception into a serializable map representation.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited