FirebaseException constructor

FirebaseException({
  1. required String plugin,
  2. String? message,
  3. String code = 'unknown',
  4. StackTrace? stackTrace,
})

A generic class which provides exceptions in a Firebase-friendly format to users.

try {
  await Firebase.initializeApp();
} catch (e) {
  print(e.toString());
}

Implementation

FirebaseException(
    {required this.plugin,
    this.message,
    this.code = 'unknown',
    this.stackTrace});