Sha256: 935dbf95153219c0575d0f06bbb83557f2e27e69afce603d47dd52783a29b64f

Contents?: true

Size: 899 Bytes

Versions: 12

Compression:

Stored size: 899 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 UpdateMocksError < Exception

    def initialize(name, mock_version, gem_version)
      super("#{name} was built with #{mock_version} but the gem version is #{gem_version}. Run `rake active_mocker:build` to update.")
    end

  end

  class NotImplementedError < Exception
  end

  class IdNotNumber < Exception
  end

  class Error < Exception
  end

end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_mocker-2.0.0.beta1 lib/active_mocker/mock/exceptions.rb
active_mocker-1.8.4 lib/active_mocker/mock/exceptions.rb
active_mocker-1.8.3 lib/active_mocker/mock/exceptions.rb
active_mocker-1.8.2 lib/active_mocker/mock/exceptions.rb
active_mocker-1.8.1 lib/active_mocker/mock/exceptions.rb
active_mocker-1.8 lib/active_mocker/mock/exceptions.rb
active_mocker-1.7.3 lib/active_mocker/mock/exceptions.rb
active_mocker-1.7.2 lib/active_mocker/mock/exceptions.rb
active_mocker-1.7.1 lib/active_mocker/mock/exceptions.rb
active_mocker-1.7.1rc lib/active_mocker/mock/exceptions.rb
active_mocker-1.7 lib/active_mocker/mock/exceptions.rb
active_mocker-1.7rc2 lib/active_mocker/mock/exceptions.rb