Callback function for handling errors.

Syntax

function(<ErrorArgument> err)