Exception: Saklient::Errors::HttpForbiddenException

Inherits:
HttpException
  • Object
show all
Defined in:
lib/saklient/errors/http_forbidden_exception.rb

Overview

要求された操作は許可されていません. 権限エラー.

Direct Known Subclasses

Cloud::Errors::AccessApiKeyDisabledException, Cloud::Errors::AccessSakuraException, Cloud::Errors::AccessStaffException, Cloud::Errors::AccessTokenException, Cloud::Errors::AccessXhrOrApiKeyException, Cloud::Errors::AccountNotSpecifiedException, Cloud::Errors::DisabledInSandboxException, Cloud::Errors::DontCreateInSandboxException, Cloud::Errors::UserNotSpecifiedException

Instance Attribute Summary

Attributes inherited from HttpException

#code, #status

Instance Method Summary (collapse)

Constructor Details

- (HttpForbiddenException) initialize(status, code = nil, message = '')

Returns a new instance of HttpForbiddenException

Parameters:

  • status (Fixnum)
  • code (String) (defaults to: nil)
  • message (String) (defaults to: '')


16
17
18
# File 'lib/saklient/errors/http_forbidden_exception.rb', line 16

def initialize(status, code = nil, message = '')
  super(status, code, (message).nil? || message == '' ? '要求された操作は許可されていません。権限エラー。' : message)
end