Exception: Morpheus::Cli::CommandAborted

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

Overview

An error indicating the user declined to accept a confirmation prompt, assigned exit code 9

Instance Attribute Summary

Attributes inherited from CommandError

#args, #exit_code, #optparse

Instance Method Summary collapse

Constructor Details

#initialize(msg, args = [], optparse = nil, exit_code = nil) ⇒ CommandAborted

Returns a new instance of CommandAborted.



48
49
50
# File 'lib/morpheus/cli/errors.rb', line 48

def initialize(msg, args=[], optparse=nil, exit_code=nil)
  super(msg, args, optparse, exit_code || 9)
end