@aws-amplify/core
Version:
Core category of aws-amplify
24 lines (21 loc) • 488 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { AmplifyError } from '../../errors';
export class AmplifyServerContextError extends AmplifyError {
constructor({
message,
recoverySuggestion,
underlyingError,
}: {
message: string;
recoverySuggestion?: string;
underlyingError?: Error;
}) {
super({
name: 'AmplifyServerContextError',
message,
recoverySuggestion,
underlyingError,
});
}
}