Exception: Expressir::UsageError

Inherits:
Error
  • Object
show all
Defined in:
lib/expressir/errors.rb

Overview

Usage/Argument Errors

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(message, usage_hint: nil) ⇒ UsageError

Returns a new instance of UsageError.



47
48
49
50
# File 'lib/expressir/errors.rb', line 47

def initialize(message, usage_hint: nil)
  @usage_hint = usage_hint
  super(message)
end

Instance Attribute Details

#usage_hintObject (readonly)

Returns the value of attribute usage_hint.



45
46
47
# File 'lib/expressir/errors.rb', line 45

def usage_hint
  @usage_hint
end