Exception: Saklient::Errors::HttpUnauthorizedException

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

Overview

この操作は認証が必要です. IDまたはパスワードが誤っている可能性があります.

Instance Attribute Summary

Attributes inherited from HttpException

#code, #status

Instance Method Summary (collapse)

Constructor Details

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

Returns a new instance of HttpUnauthorizedException

Parameters:

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


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

def initialize(status, code = nil, message = '')
  super(status, code, (message).nil? || message == '' ? 'この操作は認証が必要です。IDまたはパスワードが誤っている可能性があります。' : message)
end