Exception: CvpRequestError

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

Overview

General error with a CVP HTTP request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = nil, msg = 'Unknown error') ⇒ CvpRequestError

Returns a new instance of CvpRequestError.



48
49
50
51
52
# File 'lib/cvprac/client_errors.rb', line 48

def initialize(code = nil, msg = 'Unknown error')
  @code = code
  @msg = msg
  super("ERROR: #{code} - #{msg}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



47
48
49
# File 'lib/cvprac/client_errors.rb', line 47

def code
  @code
end

#msgObject (readonly)

Returns the value of attribute msg.



47
48
49
# File 'lib/cvprac/client_errors.rb', line 47

def msg
  @msg
end