Exception: VixenRename::VixenAPIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vixen_rename.rb

Overview

Exception class when a Vixen API sends a non-200 response

Instance Method Summary collapse

Constructor Details

#initialize(code, body, msg = nil) ⇒ VixenAPIError

Returns a new instance of VixenAPIError.

Parameters:

  • code (Integer)

    Response Code

  • body (Hash)

    Response body

  • msg (nil) (defaults to: nil)

    Error Message



17
18
19
20
21
# File 'lib/vixen_rename.rb', line 17

def initialize(code, body, msg = nil)
  @code = code
  @body = body
  super(msg)
end