Sha256: f37ab51a3ae49e2ca3dbc551808cfae3695ca50f8b4ba2cf82d07f5ad95f44dc

Contents?: true

Size: 652 Bytes

Versions: 5

Compression:

Stored size: 652 Bytes

Contents

module ActiveMocker
module Mock
  class RecordNotFound < StandardError
  end

  class ReservedFieldError < StandardError
  end

  class IdError < StandardError
  end

  class FileTypeMismatchError < StandardError
  end

  # Raised when unknown attributes are supplied via mass assignment.
  class UnknownAttributeError < NoMethodError

    attr_reader :record, :attribute

    def initialize(record, attribute)
      @record = record
      @attribute = attribute.to_s
      super("unknown attribute: #{attribute}")
    end

  end

  class Unimplemented < Exception
  end

  class IdNotNumber < Exception
  end

  class Error < Exception
  end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_mocker-1.6.4 lib/active_mocker/mock/exceptions.rb
active_mocker-1.6.3 lib/active_mocker/mock/exceptions.rb
active_mocker-1.6.2 lib/active_mocker/mock/exceptions.rb
active_mocker-1.6.1 lib/active_mocker/mock/exceptions.rb
active_mocker-1.6 lib/active_mocker/mock/exceptions.rb