error abstract method

void error(
  1. Function callback
)

Register a callback to be called anytime an error occurs.

Implementation

void error(Function callback);