API Reference: Exceptions and Errors#
Complete reference for all exception types in bfabricPy.
- class bfabric.errors.BfabricRequestError(message: str)#
Bases:
RuntimeErrorAn error returned by the B-Fabric server in response to a request.
Typically raised for authentication failures, permission errors, or server-side issues. The error is wrapped in a RuntimeError when automatic error checking is enabled.
- Variables:
message (str) – The error message from the B-Fabric server
- class bfabric.errors.BfabricConfigError#
Bases:
RuntimeErrorRaised when the B-Fabric configuration is invalid or cannot be loaded.
Common causes: - Invalid or missing configuration file - Missing required credentials - Invalid environment name (config_file_env)
- class bfabric.errors.BfabricInstanceNotConfiguredError(instance_name: str)#
Bases:
RuntimeErrorRaised when token-based authentication is used with an unsupported B-Fabric instance.
This error occurs during token validation when the instance is not listed in the supported_bfabric_instances configuration.
See Also#
Error Handling - Complete error handling guide
Troubleshooting - Solutions to common issues