Exception: Zedkit::CLI::CommandLineError
- Inherits:
-
ZedkitError
- Object
- StandardError
- ZedkitError
- Zedkit::CLI::CommandLineError
- Defined in:
- lib/zedkit/cli/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(info = {}) ⇒ CommandLineError
constructor
A new instance of CommandLineError.
- #to_s ⇒ Object
Constructor Details
#initialize(info = {}) ⇒ CommandLineError
Returns a new instance of CommandLineError.
23 24 25 26 |
# File 'lib/zedkit/cli/exceptions.rb', line 23 def initialize(info = {}) @locale = info[:locale] || :en @message = info[:message] || nil end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
21 22 23 |
# File 'lib/zedkit/cli/exceptions.rb', line 21 def locale @locale end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
21 22 23 |
# File 'lib/zedkit/cli/exceptions.rb', line 21 def @message end |