Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Error classes should inherit from RuntimeError instead of Exception
  • Loading branch information
deepsource-autofix[bot] authored Feb 27, 2022
commit 23be57381d1508be3d0b0d789d5e66d48de3e16a
2 changes: 1 addition & 1 deletion lib/scientist/experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.set_default(klass)
end

# A mismatch, raised when raise_on_mismatches is enabled.
class MismatchError < Exception
class MismatchError < RuntimeError
attr_reader :name, :result

def initialize(name, result)
Expand Down