Skip to content

error 🔗

Common error types.

FFIError 🔗

FFIError(error_code: int, message: str)

Bases: RuntimeError

Exception raised when a vAccel runtime error occurs.

Parameters:

Name Type Description Default

error_code 🔗

int

The code associated with the runtime error.

required

message 🔗

str

A message describing the error.

required
Source code in vaccel/error.py
def __init__(self, error_code: int, message: str):
    """Initializes a new `FFIError` object.

    Args:
        error_code: The code associated with the runtime error.
        message: A message describing the error.
    """
    self.code = error_code
    self.message = message