Exception: Itch::AuthError
Overview
Authentication errors, includes individual error messages in errors key
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors: []) ⇒ AuthError
constructor
A new instance of AuthError.
- #message ⇒ Object
Constructor Details
#initialize(message, errors: []) ⇒ AuthError
Returns a new instance of AuthError.
15 16 17 18 |
# File 'lib/itch_client.rb', line 15 def initialize(, errors: []) super() @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
13 14 15 |
# File 'lib/itch_client.rb', line 13 def errors @errors end |
Instance Method Details
#message ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/itch_client.rb', line 20 def m = super return "#{m}\n\n#{errors.join("\n")}" if errors.any? m end |