mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-15 21:08:06 +00:00
v4
This commit is contained in:
+17
-13
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user