Exception: CvpLoginError

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

Overview

Error logging in to CVP

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



38
39
40
# File 'lib/cvprac/client_errors.rb', line 38

def code
  @code
end

#msgObject (readonly)

Returns the value of attribute msg.



38
39
40
# File 'lib/cvprac/client_errors.rb', line 38

def msg
  @msg
end