Exception: KazeClient::Error::Forbidden

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

Overview

Generic 403 error sent by Kaze server

Author:

Since:

  • 0.1.0

Direct Known Subclasses

DisabledAccount, NoPrivateToken

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 = '403 Forbidden') ⇒ Forbidden

Returns a new instance of Forbidden.

Since:

  • 0.1.0



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

def initialize(msg='403 Forbidden')
  super(status: :forbidden, message: msg)
end