This commit is contained in:
Ichinga Samuel
2024-11-15 21:13:19 +01:00
parent 2a55f49f78
commit 2e7aa73aec
19 changed files with 1400 additions and 1415 deletions
+17 -13
View File
@@ -1,21 +1,24 @@
# Errors
## Tabel of contents
- [Error](#errors.Error)
- [Error](#errors.error)
- [is_connection_error](#errors.is_connection_error)
<a id="errors.Error"></a>
<a id="errors.error"></a>
## Error
```python
class Error()
class Error
```
Error class for handling errors from MetaTrader 5.
#### Attributes
| Name | Type | Description |
|----------------|--------|----------------------------------------------|
| `code` | `int` | Error code |
| `description` | `str` | Error description |
| `descriptions` | `dict` | A dictionary of error codes and descriptions |
Error class for handling errors.
#### Attributes:
| Name | Type | Description |
|----------------|--------------|----------------------------------------------|
| `code` | `int` | Error code |
| `description` | `str` | Error description |
| `descriptions` | `dict` | A dictionary of error codes and descriptions |
| `conn_errors` | `tuple[int]` | A tuple of connection errors |
<a id="errors.is_connection_error"></a>
@@ -23,8 +26,9 @@ Error class for handling errors from MetaTrader 5.
```python
def is_connection_error(self) -> bool
```
Check if error is a connection error.
#### Returns
Check if an error is a connection error.
#### Returns:
| Type | Description |
|--------|------------------------------------------------------|
| `bool` | True if error is a connection error, False otherwise |
| `bool` | True if error is a connection error, False otherwise |