Exception: PkiExpress::CommandError

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

Direct Known Subclasses

InstallationNotFoundError, ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/pki_express/command_error.rb', line 3

def code
  @code
end

#inner_errorObject

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/pki_express/command_error.rb', line 3

def name
  @name
end