pyVHDLModel.Exception

This module contains parts of an abstract document language model for VHDL.

The module Exceptions contains all structured errors that are raised by pyVHDLModel. Besides a default error message in english, each exception object contains one or multiple references to the exception’s context.

Exceptions


Exceptions

exception pyVHDLModel.Exception.VHDLModelException[source]

Base-class for all exceptions (errors) raised by pyVHDLModel.

Inheritance

Inheritance diagram of VHDLModelException

exception pyVHDLModel.Exception.LibraryExistsInDesignError(library)[source]

This exception is raised, when the library is already existing in the design.

Message: f"Library '{library.Identifier}' already exists in design."

Inheritance

Inheritance diagram of LibraryExistsInDesignError

Parameters:

library (Library)

exception pyVHDLModel.Exception.LibraryRegisteredToForeignDesignError(library)[source]

This exception is raised, when the library is already registered to a foreign design.

Message: f"Library '{library.Identifier}' already registered in design '{library.Parent}'."

Inheritance

Inheritance diagram of LibraryRegisteredToForeignDesignError

Parameters:

library (Library)

exception pyVHDLModel.Exception.LibraryNotRegisteredError(library)[source]

This exception is raised, when the library is not registered in the design.

Message: f"Library '{library.Identifier}' is not registered in the design."

Inheritance

Inheritance diagram of LibraryNotRegisteredError

Parameters:

library (Library)

exception pyVHDLModel.Exception.EntityExistsInLibraryError(entity, library)[source]

This exception is raised, when the entity already existing in the library.

Message: f"Entity '{entity.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of EntityExistsInLibraryError

Parameters:
exception pyVHDLModel.Exception.ArchitectureExistsInLibraryError(architecture, entity, library)[source]

This exception is raised, when the architecture already existing in the library.

Message: f"Architecture '{architecture.Identifier}' for entity '{entity.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of ArchitectureExistsInLibraryError

Parameters:
exception pyVHDLModel.Exception.PackageExistsInLibraryError(package, library)[source]

This exception is raised, when the package already existing in the library.

Message: f"Package '{package.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of PackageExistsInLibraryError

Parameters:
exception pyVHDLModel.Exception.PackageBodyExistsError(packageBody, library)[source]

This exception is raised, when the package body already existing in the library.

Message: f"Package body '{packageBody.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of PackageBodyExistsError

Parameters:
exception pyVHDLModel.Exception.ConfigurationExistsInLibraryError(configuration, library)[source]

This exception is raised, when the configuration already existing in the library.

Message: f"Configuration '{configuration.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of ConfigurationExistsInLibraryError

Parameters:
exception pyVHDLModel.Exception.ContextExistsInLibraryError(context, library)[source]

This exception is raised, when the context already existing in the library.

Message: f"Context '{context.Identifier}' already exists in library '{library.Identifier}'."

Inheritance

Inheritance diagram of ContextExistsInLibraryError

Parameters:
exception pyVHDLModel.Exception.ReferencedLibraryNotExistingError(context, librarySymbol)[source]

This exception is raised, when a library is referenced by a library clause, but doesn’t exist in the design.

Message: f"Library '{librarySymbol.Name.Identifier}' referenced by library clause of context '{context.Identifier}' doesn't exist in design."

Inheritance

Inheritance diagram of ReferencedLibraryNotExistingError

Parameters: