contentful-sdk-core
Version:
Core modules for the Contentful JS SDKs
10 lines (9 loc) • 395 B
TypeScript
/**
* Handles errors received from the server. Parses the error into a more useful
* format, places it in an exception and throws it.
* See https://www.contentful.com/developers/docs/references/errors/
* for more details on the data received on the errorResponse.data property
* and the expected error codes.
* @private
*/
export default function errorHandler(errorResponse: any): never;