You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
46 lines
852 B
Plaintext
Vendored
46 lines
852 B
Plaintext
Vendored
---
|
|
sidebar_position: 8
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get last error
|
|
Gets information about the last error in the connection
|
|
|
|
|
|
|
|
`Function GetLastError(Val Connection) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Connection | - | Arbitrary | ✔ | Connection, see. CreateConnection |
|
|
|
|
|
|
Returns: Map Of KeyAndValue, Undefined - Error information or undefined if there is no error
|
|
|
|
<br/>
|
|
|
|
|
|
:::caution
|
|
**NOCLI:** this method is not available in CLI version
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Address = "45.79.112.203:4242";
|
|
Connection = OPI_TCP.CreateConnection(Address);
|
|
Data = "Hello server!" + Chars.LF;
|
|
|
|
Sending = OPI_TCP.SendLine(Connection, Data);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
null
|
|
```
|