Exception: EndPointBlank::UnauthorizedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/end_point_blank/unauthorized_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status = 401) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



5
6
7
8
# File 'lib/end_point_blank/unauthorized_error.rb', line 5

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/end_point_blank/unauthorized_error.rb', line 3

def status
  @status
end