Exception: Cli::UnknownModelError

Inherits:
Error
  • Object
show all
Defined in:
lib/cli/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#exit_code

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, exit_code = 100) ⇒ UnknownModelError

Returns a new instance of UnknownModelError.



41
42
43
# File 'lib/cli/errors.rb', line 41

def initialize(model,exit_code=100)
  super("Not a sequel model: '#{model}'.")
end

Class Method Details

.raise(model, exit_code = 100) ⇒ Object



45
46
47
# File 'lib/cli/errors.rb', line 45

def self.raise(model,exit_code=100)
  super
end