Exception: PkiExpress::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- PkiExpress::CommandError
- Defined in:
- lib/pki_express/command_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#inner_error ⇒ Object
Returns the value of attribute inner_error.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(code, msg, inner_error = nil) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(code, msg, inner_error = nil) ⇒ CommandError
Returns a new instance of CommandError.
5 6 7 8 9 10 11 |
# File 'lib/pki_express/command_error.rb', line 5 def initialize(code, msg, inner_error=nil) super(msg) @name = self.class.name @code = code @inner_error = inner_error end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/pki_express/command_error.rb', line 3 def code @code end |
#inner_error ⇒ Object
Returns the value of attribute inner_error.
3 4 5 |
# File 'lib/pki_express/command_error.rb', line 3 def inner_error @inner_error end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/pki_express/command_error.rb', line 3 def name @name end |