Intercepts errors when added programmatically to a
null if no replacement is desired. Otherwise returns an instance of AsyncError holding the new pair of error and stack trace.
Custom zones may intercept this operation.
Implementations of a new asynchronous primitive that converts synchronous errors to asynchronous errors rarely need to invoke errorCallback, since errors are usually reported through future completers or stream controllers.
AsyncError errorCallback(Object error, StackTrace stackTrace);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.