# BASIC 256 - Language Documentation

de:onerror

## OnError

### Format

onerror label

### Description

Causes the subroutine at label to be executed when an runtime error occurs. Program control may be resumed at the next statement with a Return statement in the subroutine.

### Example

See example of usage on Error Codes page.

### See Also

Error Codes, Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Offerror

### New To Version

0.9.6z

de/onerror.txt · Last modified: 2011/03/29 11:56 (external edit)