@aws-amplify/storage
Version:
Storage category of aws-amplify
17 lines (14 loc) • 490 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import {
AmplifyError,
AmplifyErrorParams,
} from '@aws-amplify/core/internals/utils';
export class StorageError extends AmplifyError {
constructor(params: AmplifyErrorParams) {
super(params);
// TODO: Delete the following 2 lines after we change the build target to >= es2015
this.constructor = StorageError;
Object.setPrototypeOf(this, StorageError.prototype);
}
}