mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
|
import { ApplicationError, type Severity } from 'n8n-workflow';
|
||
|
|
||
|
export class CredentialNotFoundError extends ApplicationError {
|
||
|
severity: Severity;
|
||
|
|
||
|
constructor(credentialId: string, credentialType: string) {
|
||
|
super(`Credential with ID "${credentialId}" does not exist for type "${credentialType}".`);
|
||
|
this.severity = 'warning';
|
||
|
}
|
||
|
}
|