lib/whyvalidationssuckin96/constants.rb in whyvalidationssuckin96-1.5.4 vs lib/whyvalidationssuckin96/constants.rb in whyvalidationssuckin96-1.5.5
- old
+ new
@@ -1,2 +1,10 @@
module WhyValidationsSuckIn96
-end
+ class ValidationError < RuntimeError
+ attr_reader :invalid_object
+
+ def initialize(message, invalid_object)
+ super(message)
+ @invalid_object = invalid_object
+ end
+ end # ValidationError
+end # WhyValidationsSuckIn96
\ No newline at end of file