Exception: Wikidotrb::Common::Exceptions::AMCHttpStatusCodeException

Inherits:
AjaxModuleConnectorException show all
Defined in:
lib/wikidotrb/common/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code) ⇒ AMCHttpStatusCodeException

Returns a new instance of AMCHttpStatusCodeException.



46
47
48
49
# File 'lib/wikidotrb/common/exceptions.rb', line 46

def initialize(message, status_code)
  super(message)
  @status_code = status_code
end

Instance Attribute Details

#status_code (readonly)

AMCから返却されたHTTPステータスが200以外だったときの例外



44
45
46
# File 'lib/wikidotrb/common/exceptions.rb', line 44

def status_code
  @status_code
end