Exception: MongoDbUtils::Tools::ToolsException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mongo-db-utils/tools/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, output, message) ⇒ ToolsException

Returns a new instance of ToolsException.



9
10
11
12
13
# File 'lib/mongo-db-utils/tools/commands.rb', line 9

def initialize(cmd, output, message)
  super(message)
  @cmd = cmd
  @output = output
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



8
9
10
# File 'lib/mongo-db-utils/tools/commands.rb', line 8

def cmd
  @cmd
end