MacroUsageException class

Exception thrown when a macro is used incorrectly.

This exception is typically thrown when:

  • Wrong number of arguments are provided
  • Invalid argument types are used
  • The macro is used in an invalid context
Inheritance

Constructors

MacroUsageException.new(String message, [Location? location])
Creates a new MacroUsageException with the given message and optional location.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
location → Location?
The source code location where the error occurred. May be null if the location is not known or relevant.
finalinherited
message String
A descriptive message explaining the error.
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.
inherited

Operators

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