Table of Contents

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

message string

PostgrestException(string?, Exception?)

public PostgrestException(string? message, Exception? innerException)

Parameters

message string
innerException Exception

Properties

Content

The content of the response object from Postgrest

public string? Content { get; }

Property Value

string

Reason

Postgres client's best effort at decoding the error from the GoTrue server.

public FailureHint.Reason Reason { get; }

Property Value

FailureHint.Reason

Response

The response object from Postgrest

public HttpResponseMessage? Response { get; }

Property Value

HttpResponseMessage

StatusCode

The HTTP status code of the response object from Postgrest

public int StatusCode { get; }

Property Value

int

Methods

AddReason()

Attempts to decode the error from the GoTrue server.

public void AddReason()