Exception: OrcaApi::HttpError
- Defined in:
 - lib/orca_api/error.rb
 
Overview
HTTP通信時に発生したエラーを表現するクラス
Instance Attribute Summary collapse
- 
  
    
      #response  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
エラーが発生したHTTP通信のNet::HTTPResponseオブジェクト.
 
Instance Method Summary collapse
- 
  
    
      #initialize(response)  ⇒ HttpError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of HttpError.
 
Constructor Details
#initialize(response) ⇒ HttpError
Returns a new instance of HttpError
      12 13 14 15  | 
    
      # File 'lib/orca_api/error.rb', line 12 def initialize(response) @response = response super("#{response.} (#{response.code})") end  | 
  
Constructor Details
#initialize(response) ⇒ HttpError
Returns a new instance of HttpError
      12 13 14 15  | 
    
      # File 'lib/orca_api/error.rb', line 12 def initialize(response) @response = response super("#{response.} (#{response.code})") end  | 
  
Instance Attribute Details
#response ⇒ Object (readonly)
エラーが発生したHTTP通信のNet::HTTPResponseオブジェクト
      10 11 12  | 
    
      # File 'lib/orca_api/error.rb', line 10 def response @response end  |