FirebaseException class Null safety

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

try {
  await Firebase.initializeApp();
} on FirebaseException catch (e) {
  print(e.toString());
}
Implemented types
Annotations

Constructors

FirebaseException({required String plugin, String? message, String code = 'unknown', StackTrace? stackTrace})
A generic class which provides exceptions in a Firebase-friendly format to users. [...]

Properties

code String
The optional code to accommodate the message. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
message String?
The long form message of the exception.
final
plugin String
The plugin the exception is for. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stackTrace StackTrace?
The stack trace which provides information to the user about the call sequence that triggered an exception
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override