SAM Error Handling
Smarter API Manifest (SAM) yaml manifest and Pydantic validation processing is handled in-line as part of normal Smarter API operations. Failures due to yaml parsing errors, Pydantic validation errors, missing fields, or other manifest related issues are raised as exceptions that are caught and mapped in the main Smarter API error handling framework.
Custom exceptions for Smarter API Manifest handling.
- exception smarter.lib.manifest.exceptions.SAMBadRequestError(message='')[source]
Bases:
SAMExceptionBaseException raised when handling http requests.
- exception smarter.lib.manifest.exceptions.SAMExceptionBase(message='')[source]
Bases:
SmarterExceptionBase exception for Smarter API Manifest handling.
- property get_formatted_err_message
- exception smarter.lib.manifest.exceptions.SAMValidationError(message='')[source]
Bases:
SAMExceptionBaseException raised during Plugin validation.