set method

void set (
  1. T error,
  2. [dynamic exception,
  3. StackTrace stack,
  4. dynamic context]
)

Sets error to lastError, and then calls all the registered listeners with the error passed in, along with related information if provided.

Implementation

void set(T error, [dynamic exception, StackTrace stack, dynamic context]);