[[["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-09-04 UTC."],[],[],null,["# Google API Core Client - Class ApiException (1.36.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.36.1 (latest)](/php/docs/reference/gax/latest/ApiException)\n- [1.36.0](/php/docs/reference/gax/1.36.0/ApiException)\n- [1.35.1](/php/docs/reference/gax/1.35.1/ApiException) \nReference documentation and code samples for the Google API Core Client class ApiException.\n\nRepresents an exception thrown during an RPC.\n\nNamespace\n---------\n\nGoogle \\\\ ApiCore\n\nMethods\n-------\n\n### __construct\n\nApiException constructor.\n\n### getStatus\n\n### getReason\n\nReturns the `reason` in ErrorInfo for an exception, or null if there is no ErrorInfo.\n\n### getDomain\n\nReturns the `domain` in ErrorInfo for an exception, or null if there is no ErrorInfo.\n\n### getErrorInfoMetadata\n\nReturns the `metadata` in ErrorInfo for an exception, or null if there is no ErrorInfo.\n\n### getBasicMessage\n\n### getMetadata\n\n### __toString\n\nString representation of ApiException\n\n### static::createFromStdClass\n\n### static::createFromApiResponse\n\n### static::createFromRestApiResponse\n\nFor REST-based responses, the metadata does not need to be decoded.\n\n### static::createFromRpcStatus\n\n### static::createFromRequestException\n\nCreates an ApiException from a GuzzleHttp RequestException."]]