error method

void error(
  1. Map msg
)

Implementation

void error(Map msg) {
  String message = msg['message'];
  callback!.log(Level.error, message);
  throw Exception(message);
}