Class
OpenAIAuthenticationRequiredException
Exception thrown when an operation requires an authenticated ChatGPT session.
Inheritance
- InvalidOperationException
- OpenAIAuthenticationRequiredException
Constructors
OpenAIAuthenticationRequiredException 3 overloads
public OpenAIAuthenticationRequiredException() #Initializes a new instance with the default message.
public OpenAIAuthenticationRequiredException(String message) #Initializes a new instance with a custom message.
Parameters
- message System.String
public OpenAIAuthenticationRequiredException(String message, Exception innerException) #Initializes a new instance with a custom message and inner exception.
Parameters
- message System.String
- innerException System.Exception
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Void GetObjectData(SerializationInfo info, StreamingContext context) #Returns:
VoidInherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Inherited Properties
public MethodBase TargetSite { get; } #Inherited from Exception
public override String Message { get; } #Inherited from Exception
public override IDictionary Data { get; } #Inherited from Exception
public Exception InnerException { get; } #Inherited from Exception
public override String HelpLink { get; set; } #Inherited from Exception
public override String Source { get; set; } #Inherited from Exception
public Int32 HResult { get; set; } #Inherited from Exception
public override String StackTrace { get; } #Inherited from Exception
Fields
public const String DefaultMessage #Default error message used when authentication is missing.
Value:
Not logged in. Run ChatGPT login first.