rom-rb/rom-migrator

View on GitHub
lib/rom/migrator/errors/not_found_error.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

module ROM::Migrator::Errors

  # The exception complaining that migration file with some number wasn't found
  #
  # @author nepalez <andrew.kozin@gmail.com>
  #
  class NotFoundError < RuntimeError

    # Initializes the exception for the wrong number
    #
    # @param [#to_s] number The number of migration
    #
    def initialize(number)
      super "Cannot find a migration with number '#{number}'"
    end

  end # class NotFoundError

end # module ROM::Migrator::Errors