Exception: CPRClient::LoginError
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- CPRClient::LoginError
- Defined in:
- lib/cpr_client/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ LoginError
constructor
Returns a new instance of LoginError.
Constructor Details
#initialize(code) ⇒ LoginError
Returns a new instance of LoginError.
12 13 14 15 |
# File 'lib/cpr_client/errors.rb', line 12 def initialize(code) @code = code super("CPRClient login failed [#{code}]") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/cpr_client/errors.rb', line 7 def code @code end |