Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / ApiErrorResponse

Interface: ApiErrorResponse ​

Defined in: packages/ts-sdk/src/generated/types/common.ts:590

Example:

ts
import type { ApiErrorResponse } from '@my-swu/simulator-client'

const apiErrorResponse: ApiErrorResponse = { error: { code: 'match_not_found', message: 'Match not found' } }

console.log(apiErrorResponse)

Properties ​

error ​

Example:

ts
import type { ApiErrorResponse } from '@my-swu/simulator-client'

const apiErrorResponse: ApiErrorResponse = { error: { code: 'match_not_found', message: 'Match not found' } }

const { error } = apiErrorResponse

console.log(error)

error: ErrorPayload

Defined in: packages/ts-sdk/src/generated/types/common.ts:591

Released under the MIT License.