mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
|
import type { LICENSE_FEATURES } from '@/constants';
|
||
|
import { ApplicationError } from 'n8n-workflow';
|
||
|
|
||
|
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.`,
|
||
|
);
|
||
|
}
|
||
|
}
|