-
Notifications
You must be signed in to change notification settings - Fork 208
/
UiError.ts
20 lines (17 loc) · 924 Bytes
/
UiError.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Utilities
*/
import { BentleyError, BentleyStatus, GetMetaDataFunction } from "@itwin/core-bentley";
/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.
* @public @deprecated in 4.3. Use [[Bentley.BentleyError]] instead.
*/
export class UiError extends BentleyError {
/** Constructs UiError using BentleyError. */
public constructor(public category: string, message: string, errorNumber: number = BentleyStatus.ERROR, getMetaData?: GetMetaDataFunction) {
super(errorNumber, message, getMetaData);
}
}