UNPKG

432 BJavaScriptView Raw
1/** Copyright (c) 2018 Uber Technologies, Inc.
2 *
3 * This source code is licensed under the MIT license found in the
4 * LICENSE file in the root directory of this source tree.
5 *
6 * @flow
7 */
8
9export default class ResponseError extends Error {
10 code: ?string;
11 meta: ?Object;
12
13 constructor(message: string) {
14 super(message);
15 this.code = null;
16 this.meta = null;
17 Error.captureStackTrace(this, ResponseError);
18 }
19}