UNPKG

395 BTypeScriptView Raw
1/**
2 * Handles errors received from the server. Parses the error into a more useful
3 * format, places it in an exception and throws it.
4 * See https://www.contentful.com/developers/docs/references/errors/
5 * for more details on the data received on the errorResponse.data property
6 * and the expected error codes.
7 * @private
8 */
9export default function errorHandler(errorResponse: any): never;