ProviderException class base

Exception thrown during service provider lifecycle.

Covers:

  • Duplicate registration
  • Failed register()
  • Failed boot()

Provides structured context for debugging initialization issues.

Implemented types

Constructors

ProviderException({required Type type, String? message, StackTrace? trace})
Generic constructor.
ProviderException.duplicateRegistration({required Type type, StackTrace? trace})
Thrown when a provider is registered more than once.
factory
ProviderException.unbooted({required Type type, StackTrace? trace})
Thrown when a provider's boot() method throws during app startup.
factory
ProviderException.unregistered({required Type type, StackTrace? trace})
Thrown when a provider's register() method throws during registration.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String?
Human-readable error message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trace → StackTrace?
Optional stack trace from the failure point.
final
type → Type
The Provider type that caused the exception.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
String representation for logging and debugging.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited