IntelligenceX
Class

OpenAIAuthenticationRequiredException

IntelligenceX.OpenAI

Namespace
IntelligenceX.OpenAI
Assembly
IntelligenceX
Base
InvalidOperationException
Implements
ISerializable
Modifiers
sealed

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 string required
public OpenAIAuthenticationRequiredException(string message, Exception innerException) #

Initializes a new instance with a custom message and inner exception.

Parameters

message string required
innerException System.Exception required

Fields

public const string DefaultMessage #

Default error message used when authentication is missing.

Value: Not logged in. Run ChatGPT login first.