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
messagestringShort description of the error source
GotrueException(string?, Reason)
Something with wrong with Gotrue / Auth
public GotrueException(string? message, FailureHint.Reason reason)
Parameters
messagestringShort description of the error source
reasonFailureHint.ReasonBest 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
messagestringShort description of the error source
reasonFailureHint.ReasonAssigned reason
innerExceptionException
GotrueException(string?, Exception?)
Something with wrong with Gotrue / Auth
public GotrueException(string? message, Exception? innerException)
Parameters
messagestringShort description of the error source
innerExceptionExceptionThe underlying exception
Properties
Content
The content of the HTTP response from the server
public string? Content { get; }
Property Value
Reason
Best guess at what caused the error from the server, see FailureHint.Reason
public FailureHint.Reason Reason { get; }
Property Value
Response
The HTTP response from the server
public HttpResponseMessage? Response { get; }
Property Value
StatusCode
The HTTP status code from the server
public int StatusCode { get; }
Property Value
Methods
AddReason()
Adds the best-effort reason for the failure
public void AddReason()