reviewboard.attachments.errors
Error definitions for attachments.
-
exception FileTooBigError(message: str, *, max_attachment_size: int)[source]
Bases: ValueError
The supplied file was too large.
-
__init__(message: str, *, max_attachment_size: int) → None[source]
Initialize the error.
- Parameters:
message (str
) – The error message to display.
max_attachment_size (int
) – The maximum allowable attachment file size, in bytes.
-
__annotations__ = {'max_attachment_size': 'int'}
-
max_attachment_size: int
The maximum size (in bytes) of file attachments.