Exception: CvpLoginError
- Inherits:
-
StandardError
- Object
- StandardError
- CvpLoginError
- Defined in:
- lib/cvprac/client_errors.rb
Overview
Error logging in to CVP
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(msg = 'Unknown error') ⇒ CvpLoginError
constructor
A new instance of CvpLoginError.
Constructor Details
#initialize(msg = 'Unknown error') ⇒ CvpLoginError
Returns a new instance of CvpLoginError.
39 40 41 42 |
# File 'lib/cvprac/client_errors.rb', line 39 def initialize(msg = 'Unknown error') @msg = msg super("ERROR: #{msg}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
38 39 40 |
# File 'lib/cvprac/client_errors.rb', line 38 def code @code end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
38 39 40 |
# File 'lib/cvprac/client_errors.rb', line 38 def msg @msg end |