peertube-plugin-livechat/client/common/lib/models/validation.ts

14 lines
304 B
TypeScript
Raw Normal View History

// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
//
// SPDX-License-Identifier: AGPL-3.0-only
export enum ValidationErrorType {
WrongType,
WrongFormat,
NotInRange,
}
export class ValidationError extends Error {
properties: {[key: string]: ValidationErrorType[] } = {}
}