Exception: Hungrytable::EnhancedErrors::EnhancedUnauthorizedError
- Inherits:
-
UnauthorizedError
- Object
- StandardError
- Hungrytable::Error
- HTTPError
- UnauthorizedError
- Hungrytable::EnhancedErrors::EnhancedUnauthorizedError
- Defined in:
- lib/hungrytable/enhanced_errors.rb
Overview
Enhance UnauthorizedError with diagnostic info
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ EnhancedUnauthorizedError
constructor
A new instance of EnhancedUnauthorizedError.
Constructor Details
#initialize(message = nil) ⇒ EnhancedUnauthorizedError
Returns a new instance of EnhancedUnauthorizedError.
10 11 12 13 |
# File 'lib/hungrytable/enhanced_errors.rb', line 10 def initialize( = nil) @diagnostics = build_diagnostics super(()) end |
Instance Attribute Details
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
8 9 10 |
# File 'lib/hungrytable/enhanced_errors.rb', line 8 def diagnostics @diagnostics end |