Type guard to check if an object is an ErrorInvocation instance.
The object to check.
True if the object is an ErrorInvocation, false otherwise.
Type guard to check if an object is an ErrorInvocation instance.