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)
- Return type:
None
- 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)
- Return type:
None
- 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)
- Return type:
None
- 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)
- Return type:
None
- 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)
- Return type:
None
- 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)
- Return type:
None
- 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