Class MalformedRequestException
Exception thrown when a request is malformed or contains invalid parameters. This indicates that the request structure or content does not meet API requirements.
Inheritance
MalformedRequestException
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class MalformedRequestException : AIClientException, ISerializable
Constructors
| Edit this page View SourceMalformedRequestException(Api, string)
Initializes a new instance of the MalformedRequestException class with an API context and error message.
Declaration
public MalformedRequestException(Api api, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Api | api | The API that received the malformed request. |
| string | message | The message that describes the malformed request. If null, a default message is used. |
MalformedRequestException(string)
Initializes a new instance of the MalformedRequestException class with a specified error message.
Declaration
public MalformedRequestException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the malformed request. |