AopInvocationException class

Thrown by an advised call when the advice cannot run as written, like Spring's AopInvocationException.

The case today: a @Before, @After, @AfterReturning or @AfterThrowing advice that is async (returns a Future) on a synchronous method, which cannot wait for it. Make the advice synchronous, or the advised method return a Future.

Implemented types

Constructors

AopInvocationException(String message)
Creates the exception with message.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong and how to fix it.
final
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