Exception: SabyVok::AuthError

Inherits:
Error
  • Object
show all
Defined in:
lib/saby_vok/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status:, body: nil) ⇒ AuthError

Returns a new instance of AuthError.



11
12
13
14
15
# File 'lib/saby_vok/errors.rb', line 11

def initialize(message, status:, body: nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/saby_vok/errors.rb', line 9

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/saby_vok/errors.rb', line 9

def status
  @status
end