Exception: ShellOpts::ShellOptsError

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

Overview

Base error class

Note that errors in the usage of the ShellOpts library are reported using standard exceptions

Direct Known Subclasses

CompilerError, Error, InternalError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ ShellOptsError

Returns a new instance of ShellOptsError.



50
51
52
53
# File 'lib/shellopts.rb', line 50

def initialize(token)
  super
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



49
50
51
# File 'lib/shellopts.rb', line 49

def token
  @token
end