mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 22:51:53 +00:00
24 lines
489 B
TypeScript
24 lines
489 B
TypeScript
export class SecretSyncError extends Error {
|
|
name: string;
|
|
|
|
error?: unknown;
|
|
|
|
secretKey?: string;
|
|
|
|
shouldRetry?: boolean;
|
|
|
|
constructor({
|
|
name,
|
|
error,
|
|
secretKey,
|
|
message,
|
|
shouldRetry = true
|
|
}: { name?: string; error?: unknown; secretKey?: string; shouldRetry?: boolean; message?: string } = {}) {
|
|
super(message);
|
|
this.name = name || "SecretSyncError";
|
|
this.error = error;
|
|
this.secretKey = secretKey;
|
|
this.shouldRetry = shouldRetry;
|
|
}
|
|
}
|