Sha256: 25d5bb7741b37a4a8fffc09765f8fefe784061de0eddf3e8818f463266a569e1
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
module Hari class HariException < RuntimeError; end class NotFound < HariException; end class InvalidQuery < HariException; end class SerializationError < HariException; end class ValidationsFailed < HariException attr_reader :object def initialize(object) @object = object errors = @object.errors.full_messages.to_sentence super errors end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hari-0.0.5 | lib/hari/errors.rb |
hari-0.0.4 | lib/hari/errors.rb |
hari-0.0.3 | lib/hari/errors.rb |
hari-0.0.1 | lib/hari/errors.rb |