mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
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.
11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
// 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> {}
|