mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-18 10:57:20 +02:00
12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import { ApplicationError } from 'n8n-workflow';
|
|
|
|
import type { LICENSE_FEATURES } from '@/constants';
|
|
|
|
export class FeatureNotLicensedError extends ApplicationError {
|
|
constructor(feature: (typeof LICENSE_FEATURES)[keyof typeof LICENSE_FEATURES]) {
|
|
super(
|
|
`Your license does not allow for ${feature}. To enable ${feature}, please upgrade to a license that supports this feature.`,
|
|
);
|
|
}
|
|
}
|