Layer 224
ErrorObj
Error.
constructor
error#c4b9f9bb code:int text:string = Error;
Parameters
| Name | Type | Description |
|---|---|---|
| Code | int | Error code |
| Text | string | Message |
Returns
ErrorGogram Example
// Creating ErrorObj constructor obj := &tg.ErrorObj{ Code: 42, Text: "Hello, World!", }