Sha256: 2bae6d424768d270893f571623a350e986e7e671747cd609e02ff939cf85bd03
Contents?: true
Size: 858 Bytes
Versions: 7
Compression:
Stored size: 858 Bytes
Contents
# frozen_string_literal: true module ActiveMocker class RecordNotFound < StandardError end module Mock # @deprecated RecordNotFound = ActiveMocker::RecordNotFound end class IdError < 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 Error < Exception end end
Version data entries
7 entries across 7 versions & 1 rubygems