PlaceholderResolutionException class

Exception thrown when placeholder resolution fails.

Contains the reason, the problematic placeholder, and the resolution path (the chain of values that led to the failure).

Example:

throw PlaceholderResolutionException(
  'Unresolvable placeholder',
  'my.key',
  'my.key=value'
);
Inheritance
Implemented types

Constructors

PlaceholderResolutionException(String reason, String placeholder, [String? value])
Creates an exception with a reason, placeholder, and optional value.

Properties

cause Object?
The underlying cause of this exception, if any.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the error.
finalinherited
placeholder String
The placeholder that could not be resolved.
final
reason String
Reason for the failure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The associated stack trace.
finalinherited
values List<String>
Resolution chain (e.g. key -> fallback -> default) that led to the error.
final

Methods

getCause() Object
The cause of this exception, if any.
inherited
getMessage() String
The message associated with this exception.
inherited
getStackTrace() StackTrace
The stack trace associated with this exception.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withValue(String value) PlaceholderResolutionException
Adds a parent resolution value to the chain and returns a new exception.

Operators

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