TypeScript API / contentia/json-api / contentiaErrorFromJsonApiError
Function: contentiaErrorFromJsonApiError()
ts
function contentiaErrorFromJsonApiError(err): ContentiaError;Convert one JSON:API error object back into a typed ContentiaError, looking the class up by its code field.
Parameters
| Parameter | Type |
|---|---|
err | { code: string; detail: string; source?: { parameter?: string; pointer?: string; }; status: string; title: string; } |
err.code? | string |
err.detail? | string |
err.source? | { parameter?: string; pointer?: string; } |
err.source.parameter? | string |
err.source.pointer? | string |
err.status? | string |
err.title? | string |