Exception: Rouge::CLI::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rouge/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = 1) ⇒ Error

Returns a new instance of Error.



62
63
64
65
# File 'lib/rouge/cli.rb', line 62

def initialize(message, status=1)
  @message = message
  @status = status
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



61
62
63
# File 'lib/rouge/cli.rb', line 61

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



61
62
63
# File 'lib/rouge/cli.rb', line 61

def status
  @status
end