Exception: Dcmgr::Cli::UnknownModelError

Inherits:
Error
  • Object
show all
Defined in:
lib/dcmgr/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/dcmgr/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/dcmgr/cli/errors.rb', line 45

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