Exception: Hungrytable::EnhancedErrors::EnhancedUnauthorizedError

Inherits:
UnauthorizedError show all
Defined in:
lib/hungrytable/enhanced_errors.rb

Overview

Enhance UnauthorizedError with diagnostic info

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil)
  @diagnostics = build_diagnostics
  super(build_message(message))
end

Instance Attribute Details

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



8
9
10
# File 'lib/hungrytable/enhanced_errors.rb', line 8

def diagnostics
  @diagnostics
end