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
VHDLModelException
: Base-class for all exceptions (errors) raised by pyVHDLModel.LibraryExistsInDesignError
: This exception is raised, when the library is already existing in the design.LibraryRegisteredToForeignDesignError
: This exception is raised, when the library is already registered to a foreign design.LibraryNotRegisteredError
: This exception is raised, when the library is not registered in the design.EntityExistsInLibraryError
: This exception is raised, when the entity already existing in the library.ArchitectureExistsInLibraryError
: This exception is raised, when the architecture already existing in the library.PackageExistsInLibraryError
: This exception is raised, when the package already existing in the library.PackageBodyExistsError
: This exception is raised, when the package body already existing in the library.ConfigurationExistsInLibraryError
: This exception is raised, when the configuration already existing in the library.ContextExistsInLibraryError
: This exception is raised, when the context already existing in the library.ReferencedLibraryNotExistingError
: This exception is raised, when a library is referenced by a library clause, but doesn’t exist in the design.
Exceptions
- exception pyVHDLModel.Exception.VHDLModelException[source]
Base-class for all exceptions (errors) raised by pyVHDLModel.
Inheritance
- 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
- 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
- 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
- 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
- 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
- Parameters:
architecture (Architecture)
entity (Entity)
library (Library)
- 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
- 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
- Parameters:
packageBody (PackageBody)
library (Library)
- 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
- Parameters:
configuration (Configuration)
library (Library)
- 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
- 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