Exception: LanggraphPlatform::Errors::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code = nil) ⇒ APIError

Returns a new instance of APIError.



6
7
8
9
10
# File 'lib/langgraph_platform/errors.rb', line 6

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

Instance Attribute Details

#message ⇒ Object (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/langgraph_platform/errors.rb', line 4

def message
  @message
end

#status_code ⇒ Object (readonly)

Returns the value of attribute status_code.



4
5
6
# File 'lib/langgraph_platform/errors.rb', line 4

def status_code
  @status_code
end