aac.execute.aac_execution_result¶
Provides classes for representing the results of executing a plugin.
Classes
|
Provides a message for the user. |
|
Provides information regarding the results of the execution of a plugin. |
|
An enumeration that represents status codes for AaC commands to return. |
|
An enumeration that represents the level of a message. |
Exceptions
|
A base class representing a plugin error condition. |
|
A base class representing an cancelled plugin operation condition. |
- exception aac.execute.aac_execution_result.ExecutionError(message: str)[source]¶
A base class representing a plugin error condition.
- Parameters:
message (str)
- Return type:
None
- message¶
a textual description of the reason for the exception.
- Type:
str
- class aac.execute.aac_execution_result.ExecutionMessage(message: str, level: MessageLevel, source: AaCFile | None, location: SourceLocation | None)[source]¶
Provides a message for the user.
- Parameters:
message (str)
level (MessageLevel)
source (AaCFile | None)
location (SourceLocation | None)
- message¶
The textual content of the message.
- Type:
str
- level¶
value of MessageLevel.DEBUG, .INFO, .WARNING, or .ERROR
- Type:
- source¶
(AaCFile): The file from whence the message came.
- Type:
- location¶
(SourceLocation): The col, row info within the source file.
- Type:
- class aac.execute.aac_execution_result.ExecutionResult(plugin_name: str, plugin_command_name: str, status_code: ExecutionStatus, messages: list[ExecutionMessage] = NOTHING)[source]¶
Provides information regarding the results of the execution of a plugin.
- Parameters:
plugin_name (str)
plugin_command_name (str)
status_code (ExecutionStatus)
messages (list[ExecutionMessage])
- plugin_name¶
The name of the plugin whose results are included.
- Type:
str
- plugin_command_name¶
The name of the command which contributed to these results.
- Type:
str
- status_code¶
A status code for the plugin execution.
- Type:
- messages¶
A list of messages for the user.
- Type:
list[str]
- add_message(message: ExecutionMessage) None [source]¶
Add a message to the list of messages.
- Parameters:
message (ExecutionMessage)
- Return type:
None
- add_messages(messages: list[ExecutionMessage]) None [source]¶
Add messages to the list of messages.
- Parameters:
messages (list[ExecutionMessage])
- Return type:
None
- class aac.execute.aac_execution_result.ExecutionStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
An enumeration that represents status codes for AaC commands to return.