Class OctoAIValidationError

Client-side validation errors. Problems with request caught before sending.

Hierarchy

  • OctoAIError
    • OctoAIValidationError

Constructors

  • Parent class for OctoAI Errors used by the TS SDK.

    Parameters

    • message: string

      Message from server or client about cause of error.

    • Optional causedBy: Error

      Error code of course error. Usually HTTP errors.

    Returns OctoAIValidationError

Properties

causedBy?: Error
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc