ToolGlot exposes structured exceptions in toolglot.errors for stable, actionable failure handling.
ToolGlotError(base)UserInputError(TG_INPUT_INVALID, exit code2)UnsupportedFormatError(TG_FORMAT_UNSUPPORTED, exit code4)ImporterError(TG_IMPORT_FAILED, exit code5)ExporterError(TG_EXPORT_FAILED, exit code5)ProviderPayloadError(TG_PROVIDER_PAYLOAD, exit code2)
All ToolGlot exceptions include:
code(stable machine-readable identifier)message(human-readable summary)category(logical failure group)exit_code(CLI-compatible process code)details(structured metadata dict)
CLI commands convert taxonomy errors into deterministic non-zero exits and print structured details for debugging.