Exception: Supabase::Functions::Errors::FunctionsError
- Inherits:
-
StandardError
- Object
- StandardError
- Supabase::Functions::Errors::FunctionsError
- Defined in:
- lib/supabase/functions/errors.rb
Overview
Base class — rescue this to catch any Functions-API failure.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, name:, status:) ⇒ FunctionsError
constructor
A new instance of FunctionsError.
- #to_h ⇒ Object
Constructor Details
#initialize(message, name:, status:) ⇒ FunctionsError
Returns a new instance of FunctionsError.
10 11 12 13 14 |
# File 'lib/supabase/functions/errors.rb', line 10 def initialize(, name:, status:) @name = name @status = status super(.to_s) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/supabase/functions/errors.rb', line 8 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/supabase/functions/errors.rb', line 8 def status @status end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/supabase/functions/errors.rb', line 16 def to_h { "name" => @name, "message" => , "status" => @status } end |