@aws-amplify/auth
Version:
Auth category of aws-amplify
17 lines (14 loc) • 600 B
JavaScript
import { AmplifyError } from '@aws-amplify/core/internals/utils';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
class AuthError extends AmplifyError {
constructor(params) {
super(params);
// Hack for making the custom error class work when transpiled to es5
// TODO: Delete the following 2 lines after we change the build target to >= es2015
this.constructor = AuthError;
Object.setPrototypeOf(this, AuthError.prototype);
}
}
export { AuthError };
//# sourceMappingURL=AuthError.mjs.map