mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
15 lines
376 B
Crystal
15 lines
376 B
Crystal
|
require "./location"
|
||
|
|
||
|
module Spectator
|
||
|
# Exception that indicates an example failed.
|
||
|
# When raised within a test, the test should abort.
|
||
|
class ExampleFailed < Exception
|
||
|
getter! location : Location
|
||
|
|
||
|
# Creates the exception.
|
||
|
def initialize(@location : Location?, message : String? = nil, cause : Exception? = nil)
|
||
|
super(message, cause)
|
||
|
end
|
||
|
end
|
||
|
end
|