lib/contrast/matching_exception.rb in contrast-0.2.2 vs lib/contrast/matching_exception.rb in contrast-1.0.0
- old
+ new
@@ -1,8 +1,14 @@
require 'awesome_print'
module Contrast
class MatchingException < StandardError
+
+ def initialize(results)
+ @results = results
+ end
+
attr_accessor :results
+
def to_s
return 'The results did not match, but I cannot tell you why.' if results.nil? || results.empty?
return self.results.ai
end
end