Exception: Arfi::Errors::NoFunctionsDir

Inherits:
StandardError
  • Object
show all
Defined in:
lib/arfi/errors.rb

Overview

Raised when there is no ‘db/functions` directory in the Rails project.

Instance Method Summary collapse

Constructor Details

#initialize(message = 'There is no such directory: db/functions. Did you run `bundle exec arfi project:create`?') ⇒ void

Initialize a new NoFunctionsDir error with an optional custom message.

Parameters:

  • message (String) (defaults to: 'There is no such directory: db/functions. Did you run `bundle exec arfi project:create`?')

    Error message



11
12
13
14
15
# File 'lib/arfi/errors.rb', line 11

def initialize(message =
                 'There is no such directory: db/functions. Did you run `bundle exec arfi project:create`?')
  @message = message
  super
end