@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
17 lines (15 loc) • 711 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Base error class for the UserAgent.
*/
export default class UserAgentError extends Error {
constructor (message: string) {
super(message);
// NOTE: Extending 'Error' breaks prototype chain since TypeScript 2.1.
// The following line restores prototype chain.
Object.setPrototypeOf(this, new.target.prototype);
}
}