Function to pass a exception and error message.
@override void errorWithException(String message, Exception exception) {}