Exception: KazeClient::Error::Unauthorized

Inherits:
Generic show all
Defined in:
lib/kaze_client/error/unauthorized.rb

Overview

Generic 401 error sent by Kaze server

Author:

Since:

  • 0.1.0

Direct Known Subclasses

InvalidCredentials

Constant Summary

Constants inherited from Generic

Generic::DEFAULT_MESSAGE

Instance Attribute Summary

Attributes inherited from Generic

#error, #status

Instance Method Summary collapse

Constructor Details

#initialize(msg = '401 Unauthorized') ⇒ Unauthorized

Returns a new instance of Unauthorized.

Since:

  • 0.1.0



11
12
13
# File 'lib/kaze_client/error/unauthorized.rb', line 11

def initialize(msg='401 Unauthorized')
  super(status: :unauthorized, message: msg)
end