Exception: CvpRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- CvpRequestError
- Defined in:
- lib/cvprac/client_errors.rb
Overview
General error with a CVP HTTP request
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(code = nil, msg = 'Unknown error') ⇒ CvpRequestError
constructor
A new instance of CvpRequestError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
47 48 49 |
# File 'lib/cvprac/client_errors.rb', line 47 def code @code end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
47 48 49 |
# File 'lib/cvprac/client_errors.rb', line 47 def msg @msg end |