Exception: Common::ParameterError

Inherits:
CloudboxError show all
Defined in:
lib/common/cloudbox_exceptions.rb

Overview

The class which list all parameters errors

Instance Method Summary collapse

Constructor Details

#initialize(msg, usage) ⇒ ParameterError

Note:

Overrides default constructor by passing CustomCommandOption to super().

Default constructor of the class.



14
15
16
17
# File 'lib/common/cloudbox_exceptions.rb', line 14

def initialize(msg, usage)
  @usage = usage
  super(msg)
end

Instance Method Details

#usageObject

Return the usage help of the class calling the exception

Author:

  • mbretaud



21
22
23
# File 'lib/common/cloudbox_exceptions.rb', line 21

def usage()
  return @usage
end