rework alerts

This starts moving alerts to the same subsystem where they are relevant
instead of putting everything in notifications.

So far, only the explorer file in use error is handled like this.
This commit is contained in:
David Lechner
2022-05-20 19:25:18 -05:00
parent 4e88605b16
commit e7366c8afd
31 changed files with 649 additions and 138 deletions
+10
View File
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 The Pybricks Authors
import { CustomError } from '../utils/customError';
/** Specific errors for editor subsystem. */
export type EditorErrorName = 'FileInUse';
/** Error class for editor subsystem. */
export class EditorError extends CustomError<EditorErrorName> {}