Sha256: 5b822d367c940ddc377636128805cf46c754cdfcb3a7b6faebce48970d669449
Contents?: true
Size: 673 Bytes
Versions: 5
Compression:
Stored size: 673 Bytes
Contents
module Sequel # Exception class raised when raise_on_save_failure is set and a before hook returns false class BeforeHookFailed < Error; end # Exception class raised when require_modification is set and an UPDATE or DELETE statement to modify the dataset doesn't # modify a single row. class NoExistingObject < Error; end # Exception class raised when raise_on_save_failure is set and validation fails class ValidationFailed < Error def initialize(errors) if errors.respond_to?(:full_messages) @errors = errors super(errors.full_messages.join(', ')) else super end end attr_reader :errors end end
Version data entries
5 entries across 5 versions & 2 rubygems