Exceptions

Custom exception hierarchy for pyArchimate. All exceptions derive from the base ArchimateError so callers can catch the whole family with a single except ArchimateError clause.

Module contents

Exception hierarchy for Archimate model operations.

This module defines all custom exception types used throughout pyArchimate, including domain-specific validation errors.

No external pyArchimate imports - this is a Layer 1 base module.

exception pyArchimate.exceptions.ArchimateConceptTypeError[source]

Bases: ArchimateError

Raised when an invalid or unsupported Archimate concept type is encountered.

exception pyArchimate.exceptions.ArchimateError[source]

Bases: Exception

Base exception for all Archimate-related errors.

exception pyArchimate.exceptions.ArchimateRelationshipError[source]

Bases: ArchimateError

Raised when a relationship constraint is violated or an invalid relationship operation is attempted.