Sha256: 37fcaa154f21ec69d6dc1c010f5664db0cef00f8ef4f8d609c2601e2cb9ea9f6
Contents?: true
Size: 793 Bytes
Versions: 4
Compression:
Stored size: 793 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 # Raised when an undefined association is used when eager loading. class UndefinedAssociation < 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sequel-3.23.0 | lib/sequel/model/exceptions.rb |
sequel-3.22.0 | lib/sequel/model/exceptions.rb |
sequel-3.21.0 | lib/sequel/model/exceptions.rb |
sequel-3.20.0 | lib/sequel/model/exceptions.rb |