Exception: ImageToVideoAI::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/image_to_video_ai/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status:, code: nil) ⇒ APIError

Returns a new instance of APIError.



13
14
15
16
17
# File 'lib/image_to_video_ai/client.rb', line 13

def initialize(message, status:, code: nil)
  super(message)
  @status = status
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



11
12
13
# File 'lib/image_to_video_ai/client.rb', line 11

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/image_to_video_ai/client.rb', line 11

def status
  @status
end