adding the delete view and copy link additional menu option Fixes https://github.com/twentyhq/core-team-issues/issues/480 Fixes https://github.com/twentyhq/core-team-issues/issues/481
20 lines
573 B
TypeScript
20 lines
573 B
TypeScript
import { CustomException } from 'src/utils/custom-exception';
|
|
|
|
export class ViewException extends CustomException {
|
|
constructor(message: string, code: ViewExceptionCode) {
|
|
super(message, code);
|
|
}
|
|
}
|
|
|
|
export enum ViewExceptionCode {
|
|
VIEW_NOT_FOUND = 'VIEW_NOT_FOUND',
|
|
CANNOT_DELETE_INDEX_VIEW = 'CANNOT_DELETE_INDEX_VIEW',
|
|
METHOD_NOT_IMPLEMENTED = 'METHOD_NOT_IMPLEMENTED',
|
|
}
|
|
|
|
export enum ViewExceptionMessage {
|
|
VIEW_NOT_FOUND = 'View not found',
|
|
CANNOT_DELETE_INDEX_VIEW = 'Cannot delete index view',
|
|
METHOD_NOT_IMPLEMENTED = 'Method not implemented',
|
|
}
|