Search Results for

    Show / Hide Table of Contents

    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
    object
    Exception
    AIClientException
    MalformedRequestException
    InvalidPromptException
    NoInputItemsException
    Implements
    ISerializable
    Inherited Members
    AIClientException.Api
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class MalformedRequestException : AIClientException, ISerializable

    Constructors

    | Edit this page View Source

    MalformedRequestException(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.

    | Edit this page View Source

    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.

    Implements

    ISerializable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToErrorEvent<T>(T)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    ExceptionExtensions.ExtractDiagnosticMessage(Exception)
    ExceptionExtensions.ExtractServerError(Exception)
    ExceptionExtensions.GetFullMessage(Exception)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation