DomainError class
ISO 7.2.3.c: Error when argument is out of valid domain.
Example: log(-1) - negative number invalid for logarithm.
- Inheritance
-
- Object
- PrologException
- DomainError
Constructors
- DomainError({required String domain, required String message, String? context})
-
const
Properties
- context → String?
-
Optional context information (e.g., predicate name, line number).
finalinherited
- domain → String
-
The domain that was expected (e.g., 'positive_number', 'non_empty_list').
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited