lib/toy/exceptions.rb in toystore-0.10.1 vs lib/toy/exceptions.rb in toystore-0.10.2

- old
+ new

@@ -1,8 +1,10 @@ module Toy class Error < StandardError; end + class AttributeNotDefined < Error; end + class RecordInvalid < Error attr_reader :record def initialize(record) @record = record super("Invalid record: #{@record.errors.full_messages.to_sentence}") @@ -24,6 +26,6 @@ class InvalidKey < Error def initialize(*) super("Key may not be nil") end end -end \ No newline at end of file +end