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