Exception: Hubbado::Trailblazer::Errors::Unauthorized

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hubbado/trailblazer/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, result = nil) ⇒ Unauthorized

Returns a new instance of Unauthorized.



7
8
9
10
11
# File 'lib/hubbado/trailblazer/errors.rb', line 7

def initialize(message = nil, result = nil)
  @result = result

  super(message)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/hubbado/trailblazer/errors.rb', line 5

def result
  @result
end