Azure-Sentinel/.script/utils/validationError.ts

32 строки
802 B
TypeScript

interface ValidationError {
name: string;
}
export class WorkbookValidationError extends Error implements ValidationError {
public name = "WorkbookValidationError";
constructor(message?: string) {
super(message);
}
}
export class LogoValidationError extends Error implements ValidationError {
public name = "LogoValidationError";
constructor(message?: string) {
super(message);
}
}
export class DataConnectorValidationError extends Error implements ValidationError {
public name = "DataConnectorValidationError";
constructor(message?: string) {
super(message);
}
}
export class WorkbookTemplatesValidationError extends Error implements ValidationError {
public name = "WorkbookTemplatesValidationError";
constructor(message?: string) {
super(message);
}
}