Skip to main content

Classes

FalServerlessException

Base exception type for fal Serverless related flows and APIs.
Inherits from: Exception

Constructor Parameters

NameTypeDefaultDescription
args---
kwargs---

AppException

Base exception class for application-specific errors.
Inherits from: FalServerlessException

Constructor Parameters

NameTypeDefaultDescription
messagestr-A descriptive message explaining the error.
status_codeint-The HTTP status code associated with the error.

Class Variables

NameTypeDefaultDescription
messagestr-A descriptive message explaining the error.
status_codeint-The HTTP status code associated with the error.

FieldException

Exception raised for errors related to specific fields.
Inherits from: FalServerlessException

Constructor Parameters

NameTypeDefaultDescription
fieldstr-The field that caused the error.
messagestr-A descriptive message explaining the error.
status_codeint422The HTTP status code associated with the error. Defaults to 422
typestr'value_error'The type of error. Defaults to “value_error”
billable_unitsint | float | str | None0-

Class Variables

NameTypeDefaultDescription
fieldstr-The field that caused the error.
messagestr-A descriptive message explaining the error.
status_codeint422The HTTP status code associated with the error. Defaults to 422
typestr'value_error'The type of error. Defaults to “value_error”
billable_unitsint | float | str | None0-

Methods

to_pydantic_format

Returns: dict[str, list[dict]]

RequestCancelledException

Exception raised when the request is cancelled by the client.
Inherits from: FalServerlessException

Constructor Parameters

NameTypeDefaultDescription
messagestr'Request cancelled by the client.'-

Class Variables

NameTypeDefaultDescription
messagestr'Request cancelled by the client.'-

FileTooLargeError

Exception raised when the file is too large.
Inherits from: FalServerlessException

Constructor Parameters

NameTypeDefaultDescription
messagestr'File is too large.'-

Class Variables

NameTypeDefaultDescription
messagestr'File is too large.'-

AppFileUploadException

Raised when file upload fails
Inherits from: FalServerlessException

Constructor Parameters

NameTypeDefaultDescription
messagestr--
relative_pathstr--

Class Variables

NameTypeDefaultDescription
messagestr--
relative_pathstr--

CUDAOutOfMemoryException

Exception raised when a CUDA operation runs out of memory.
Inherits from: AppException

Constructor Parameters

NameTypeDefaultDescription
messagestr'CUDA error: out of memory'-
status_codeint503-

Class Variables

NameTypeDefaultDescription
messagestr'CUDA error: out of memory'-
status_codeint503-

UnauthenticatedException

Base exception type for fal Serverless related flows and APIs.
Inherits from: FalServerlessException