class Spectator::ErrorResult
Overview
Outcome that indicates running an example generated an error. This occurs when an unexpected exception was raised while running an example. This is different from a "failed" result in that the error was not from a failed assertion.
Defined in:
spectator/error_result.crInstance Method Summary
-
#accept(visitor)
Calls the
error
method on visitor. -
#accept(visitor, &)
Calls the
error
method on visitor. -
#to_s(io)
One-word description of the result.
Instance methods inherited from class Spectator::FailResult
accept(visitor)accept(visitor, &) accept, error : Exception error, fail? : Bool fail?, location : Location location, location? : Location | Nil location?, pass? : Bool pass?, to_json(json : JSON::Builder) to_json, to_s(io) to_s