# %CoGetException interface

Get error description.

## Syntax

```
retcode = %CoGetException(Param1, Param2)
```

## Parameter(s)

| Param1 [in] | CAutoCTRL handle. |
| --- | --- |
| Param2 [out] | String buffer for error description. |

## Returns

>0 = Length of the error message

0 = No error message returned

-1 = Missing buffer for output.

## Error Handling

Call CoGetException to get an error description.

## See also

- [Using the COM interface to FlashBASIC](https://d3codex.com/pickbasic-flashbasic/using-the-com-interface-to-flashbasic/)
- [FlashBASIC automation application interfaces](https://d3codex.com/pickbasic-flashbasic/flashbasic-automation-application-interfaces/)

---
Source: https://d3codex.com/pickbasic-flashbasic/cogetexception-interface/ - part of the D3Codex reference.
