Exception: Supabase::Functions::Errors::FunctionsHttpError

Inherits:
FunctionsError
  • Object
show all
Defined in:
lib/supabase/functions/errors.rb

Overview

Raised when the edge function returns a non-2xx HTTP response.

Instance Attribute Summary

Attributes inherited from FunctionsError

#name, #status

Instance Method Summary collapse

Methods inherited from FunctionsError

#to_h

Constructor Details

#initialize(message, status: nil) ⇒ FunctionsHttpError

Returns a new instance of FunctionsHttpError.



23
24
25
# File 'lib/supabase/functions/errors.rb', line 23

def initialize(message, status: nil)
  super(message, name: "FunctionsHttpError", status: status || 400)
end