base
pyvider.cty.exceptions.base
¶
TODO: Add module docstring.
Classes¶
CtyError
¶
Bases: FoundationError
Base exception for all pyvider.cty errors.
This is the root exception for all errors that occur within the cty type system. It provides a foundation for more specific error types and can be used to catch any cty-related error.
Now inherits from FoundationError to provide rich context support, telemetry integration, and enhanced diagnostics.
Attributes:
| Name | Type | Description |
|---|---|---|
message |
A human-readable error description |
Source code in pyvider/cty/exceptions/base.py
CtyFunctionError
¶
CtyFunctionError(
message: str = "An error occurred during CTY function execution",
*,
function_name: str | None = None,
input_types: list[str] | None = None,
**kwargs: Any
)
Bases: CtyError
Exception raised for errors during the execution of a CTY standard library function.
Enhanced with rich context support for function name, arguments, and execution details.
Attributes:
| Name | Type | Description |
|---|---|---|
message |
A human-readable error description |
|
function_name |
Name of the CTY function that failed |