Exception: Supabase::Functions::Errors::FunctionsRelayError

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

Overview

Raised when the Supabase relay (the layer in front of the function) reports an error — distinguishable from a function-side error via the x-relay-header response header.

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) ⇒ FunctionsRelayError

Returns a new instance of FunctionsRelayError.



32
33
34
# File 'lib/supabase/functions/errors.rb', line 32

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