[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ApiError (6.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [6.0.0 (latest)](/nodejs/docs/reference/common/latest/common/apierror)\n- [5.0.2](/nodejs/docs/reference/common/5.0.2/common/apierror)\n- [4.0.3](/nodejs/docs/reference/common/4.0.3/common/apierror)\n- [3.10.0](/nodejs/docs/reference/common/3.10.0/common/apierror)\n- [3.9.0](/nodejs/docs/reference/common/3.9.0/common/apierror)\n- [3.8.1](/nodejs/docs/reference/common/3.8.1/common/apierror)\n- [3.7.4](/nodejs/docs/reference/common/3.7.4/common/apierror) \nCustom error type for API errors. \n\nInheritance\n-----------\n\nError \\\u003e ApiError\n\nPackage\n-------\n\n[@google-cloud/common](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(errorMessage)\n\n constructor(errorMessage: string);\n\nConstructs a new instance of the `ApiError` class\n\n### (constructor)(errorBody)\n\n constructor(errorBody: GoogleErrorBody);\n\nConstructs a new instance of the `ApiError` class\n\nProperties\n----------\n\n### code\n\n code?: number;\n\n### errors\n\n errors?: GoogleInnerError[];\n\n### response\n\n response?: r.Response;\n\nMethods\n-------\n\n### createMultiErrorMessage(err, errors)\n\n static createMultiErrorMessage(err: GoogleErrorBody, errors?: GoogleInnerError[]): string;\n\nPieces together an error message by combining all unique error messages returned from a single GoogleError"]]