Class PostgrestException
- Namespace
- Supabase.Postgrest.Exceptions
- Assembly
- Supabase.Postgrest.dll
Errors from Postgrest are wrapped by this exception
public class PostgrestException : Exception, ISerializable
- Inheritance
-
PostgrestException
- Implements
- Inherited Members
Constructors
PostgrestException(string?)
public PostgrestException(string? message)
Parameters
messagestring
PostgrestException(string?, Exception?)
public PostgrestException(string? message, Exception? innerException)
Parameters
Properties
Content
The content of the response object from Postgrest
public string? Content { get; }
Property Value
Reason
Postgres client's best effort at decoding the error from the GoTrue server.
public FailureHint.Reason Reason { get; }
Property Value
Response
The response object from Postgrest
public HttpResponseMessage? Response { get; }
Property Value
StatusCode
The HTTP status code of the response object from Postgrest
public int StatusCode { get; }
Property Value
Methods
AddReason()
Attempts to decode the error from the GoTrue server.
public void AddReason()