2016-12-30 16:32:25 +01:00
|
|
|
---
|
|
|
|
title: rpc_error
|
|
|
|
description: rpc_error attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: rpc\_error
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|error\_code|[int](../types/int.md) | Yes|
|
|
|
|
|error\_message|[string](../types/string.md) | Yes|
|
2016-12-30 16:32:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [RpcError](../types/RpcError.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2016-12-30 21:21:36 +01:00
|
|
|
$rpc_error = ['_' => 'rpc_error', 'error_code' => int, 'error_message' => string, ];
|
Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
rpc_error={_='rpc_error', error_code=int, error_message=string, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|