smia.logic.exceptions module

This file contains all the classes for handling errors in exceptions that may occur during code execution.

exception smia.logic.exceptions.CriticalError(message)[source]

Bases: Exception

This exception class is defined for errors that are critical to the program, so that execution must be terminated.

exception smia.logic.exceptions.RequestDataError(message)[source]

Bases: Exception

This exception class is defined for errors that are related to a request received by the DT (request of a service or a capability).

exception smia.logic.exceptions.AASModelReadingError(message, sme_class, reason)[source]

Bases: Exception

This exception class is defined for errors that occur during AAS model management (reading, updating…).

exception smia.logic.exceptions.AASModelOntologyError(message, sme_class, reason)[source]

Bases: Exception

This exception class is defined for errors that occur during AAS model management (reading, updating…).

exception smia.logic.exceptions.ServiceRequestExecutionError(thread, message, svc_type, behav_class)[source]

Bases: Exception

This exception class is defined for errors that are related to the execution of a requested service. Since it has been requested, this class also must response to the requester with a Failure of the execution.

async handle_service_execution_error()[source]

This method handles the error during an execution of a service, sending the Failure message to the requester.

exception smia.logic.exceptions.CapabilityRequestExecutionError(cap_name, message, behav_class)[source]

Bases: Exception

This exception class is defined for errors that are related to the execution of a requested Capability. Since it has been requested, this class also must response to the requester with a Failure of the capability execution.

async handle_capability_execution_error()[source]

This method handles the error during an execution of a capability, sending the Failure message to the requester.

exception smia.logic.exceptions.CapabilityCheckingError(cap_name, reason, behav_class)[source]

Bases: Exception

This exception class is defined for errors that are related to the execution of the Capability checking process. Since this process is requested by another DT, this class also must response to the requester with a Failure of the capability checking as well as the reason of it.

async handle_capability_checking_error()[source]

This method handles the error during an execution of a capability, sending the Failure message to the requester.

exception smia.logic.exceptions.AssetConnectionError(message, error_type, reason)[source]

Bases: Exception

This exception class is defined for errors that are related to the asset connection processes.

exception smia.logic.exceptions.OntologyInstanceCreationError(message)[source]

Bases: Exception

exception smia.logic.exceptions.OntologyReadingError(message)[source]

Bases: Exception

exception smia.logic.exceptions.OntologyCheckingAttributeError(message, invalid_instance)[source]

Bases: Exception

exception smia.logic.exceptions.OntologyCheckingPropertyError(message, concerned_property_name, invalid_instance)[source]

Bases: Exception