UNPKG

537 BJavaScriptView Raw
1import { AmplifyError } from '@aws-amplify/core/internals/utils';
2
3// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4// SPDX-License-Identifier: Apache-2.0
5class StorageError extends AmplifyError {
6 constructor(params) {
7 super(params);
8 // TODO: Delete the following 2 lines after we change the build target to >= es2015
9 this.constructor = StorageError;
10 Object.setPrototypeOf(this, StorageError.prototype);
11 }
12}
13
14export { StorageError };
15//# sourceMappingURL=StorageError.mjs.map