Classes
FalServerlessException
Inherits from: Exception
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
args | - | - | - |
kwargs | - | - | - |
AppException
Inherits from: FalServerlessException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | - | A descriptive message explaining the error. |
status_code | int | - | The HTTP status code associated with the error. |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
message | str | - | A descriptive message explaining the error. |
status_code | int | - | The HTTP status code associated with the error. |
FieldException
Inherits from: FalServerlessException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
field | str | - | The field that caused the error. |
message | str | - | A descriptive message explaining the error. |
status_code | int | 422 | The HTTP status code associated with the error. Defaults to 422 |
type | str | 'value_error' | The type of error. Defaults to “value_error” |
billable_units | int | float | str | None | 0 | - |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
field | str | - | The field that caused the error. |
message | str | - | A descriptive message explaining the error. |
status_code | int | 422 | The HTTP status code associated with the error. Defaults to 422 |
type | str | 'value_error' | The type of error. Defaults to “value_error” |
billable_units | int | float | str | None | 0 | - |
Methods
Methods
RequestCancelledException
Inherits from: FalServerlessException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'Request cancelled by the client.' | - |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'Request cancelled by the client.' | - |
FileTooLargeError
Inherits from: FalServerlessException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'File is too large.' | - |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'File is too large.' | - |
AppFileUploadException
Inherits from: FalServerlessException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | - | - |
relative_path | str | - | - |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
message | str | - | - |
relative_path | str | - | - |
CUDAOutOfMemoryException
Inherits from: AppException
Constructor Parameters
Constructor Parameters
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'CUDA error: out of memory' | - |
status_code | int | 503 | - |
Class Variables
Class Variables
| Name | Type | Default | Description |
|---|---|---|---|
message | str | 'CUDA error: out of memory' | - |
status_code | int | 503 | - |
UnauthenticatedException
Inherits from: FalServerlessException