Table of Contents

Class GotrueException

Namespace
Supabase.Gotrue.Exceptions
Assembly
Supabase.Gotrue.dll

Errors from the GoTrue server are wrapped by this exception

public class GotrueException : Exception, ISerializable
Inheritance
GotrueException
Implements
Inherited Members

Constructors

GotrueException(string?)

Something with wrong with Gotrue / Auth

public GotrueException(string? message)

Parameters

message string

Short description of the error source

GotrueException(string?, Reason)

Something with wrong with Gotrue / Auth

public GotrueException(string? message, FailureHint.Reason reason)

Parameters

message string

Short description of the error source

reason FailureHint.Reason

Best effort attempt to detect the reason for the failure

GotrueException(string, Reason, Exception?)

Something with wrong with Gotrue / Auth

public GotrueException(string message, FailureHint.Reason reason, Exception? innerException)

Parameters

message string

Short description of the error source

reason FailureHint.Reason

Assigned reason

innerException Exception

GotrueException(string?, Exception?)

Something with wrong with Gotrue / Auth

public GotrueException(string? message, Exception? innerException)

Parameters

message string

Short description of the error source

innerException Exception

The underlying exception

Properties

Content

The content of the HTTP response from the server

public string? Content { get; }

Property Value

string

Reason

Best guess at what caused the error from the server, see FailureHint.Reason

public FailureHint.Reason Reason { get; }

Property Value

FailureHint.Reason

Response

The HTTP response from the server

public HttpResponseMessage? Response { get; }

Property Value

HttpResponseMessage

StatusCode

The HTTP status code from the server

public int StatusCode { get; }

Property Value

int

Methods

AddReason()

Adds the best-effort reason for the failure

public void AddReason()