# errclear

error clearing

## Calling Sequence

    errclear([n])

## Description

clears the action (error-handler) connected to error of type `n`.

If `n` is positive (n > 0), it is the number of the cleared error ; otherwise if (n <= 0) all errors are cleared (default case).

## Examples

    a = 1;
                b = undefinedvariable + a;
                lasterror()
                b = undefinedvariable + a;
                errclear()
                lasterror()
                b = undefinedvariable + a;
                errclear(5)  // error 4 always as last error
                lasterror()
                b = undefinedvariable + a;
                errclear(4)
                lasterror()

## See Also

- errcatch
- iserror
- lasterror