Exception: Aigen::Google::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/aigen/google/errors.rb

Overview

Base class for API-related errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code: nil) ⇒ ApiError

Returns a new instance of ApiError.



15
16
17
18
# File 'lib/aigen/google/errors.rb', line 15

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

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



13
14
15
# File 'lib/aigen/google/errors.rb', line 13

def status_code
  @status_code
end