mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-16 13:28:08 +00:00
v3.19
This commit is contained in:
+23
-12
@@ -1,19 +1,30 @@
|
||||
# Table of Contents
|
||||
# Errors
|
||||
|
||||
* [aiomql.core.errors](#aiomql.core.errors)
|
||||
* [Error](#aiomql.core.errors.Error)
|
||||
|
||||
<a id="aiomql.core.errors"></a>
|
||||
|
||||
# aiomql.core.errors
|
||||
|
||||
<a id="aiomql.core.errors.Error"></a>
|
||||
|
||||
## Error Objects
|
||||
## Tabel of contents
|
||||
- [Error](#errors.Error)
|
||||
- [is_connection_error](#errors.is_connection_error)
|
||||
|
||||
<a id="errors.Error"></a>
|
||||
## Error
|
||||
```python
|
||||
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 |
|
||||
|
||||
|
||||
<a id="errors.is_connection_error"></a>
|
||||
## is_connection_error
|
||||
```python
|
||||
def is_connection_error(self) -> bool
|
||||
```
|
||||
Check if error is a connection error.
|
||||
#### Returns
|
||||
| Type | Description |
|
||||
|--------|------------------------------------------------------|
|
||||
| `bool` | True if error is a connection error, False otherwise |
|
||||
Reference in New Issue
Block a user