Class UnsupportedEndpointException
Exception thrown when a requested endpoint is not supported by the specified API. Different APIs support different sets of endpoints, and this exception indicates an attempt to use an unsupported one.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class UnsupportedEndpointException : AIClientException, ISerializable
Constructors
| Edit this page View SourceUnsupportedEndpointException(Api, RequestType, ConnectionMode)
Initializes a new instance of the UnsupportedEndpointException class.
Declaration
public UnsupportedEndpointException(Api api, RequestType reqType, ConnectionMode protocol = ConnectionMode.Rest)
Parameters
| Type | Name | Description |
|---|---|---|
| Api | api | The API that does not support the endpoint. |
| RequestType | reqType | The type of endpoint that is not supported. |
| ConnectionMode | protocol | The protocol of the endpoint. Default is REST. |
Properties
| Edit this page View SourceEndpointName
Gets the name of the unsupported endpoint. Refer to the RequestType enumeration for the list of available endpoints.
Declaration
public string EndpointName { get; }
Property Value
| Type | Description |
|---|---|
| string |