react-native-flip
Version:
31 lines (27 loc) • 755 B
JavaScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
;
const _ref = require("jest-haste-map").ModuleMap,
DuplicateHasteCandidatesError = _ref.DuplicateHasteCandidatesError;
class AmbiguousModuleResolutionError extends Error {
// $FlowFixMe[value-as-type]
constructor(
fromModulePath, // $FlowFixMe[value-as-type]
hasteError
) {
super(
`Ambiguous module resolution from \`${fromModulePath}\`: ` +
hasteError.message
);
this.fromModulePath = fromModulePath;
this.hasteError = hasteError;
}
}
module.exports = AmbiguousModuleResolutionError;