mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 19:39:25 +00:00
26 lines
486 B
TypeScript
26 lines
486 B
TypeScript
export class PkiSyncError extends Error {
|
|
public context?: Record<string, unknown>;
|
|
|
|
public cause?: Error;
|
|
|
|
public shouldRetry: boolean;
|
|
|
|
constructor({
|
|
message,
|
|
cause,
|
|
context,
|
|
shouldRetry = true
|
|
}: {
|
|
message: string;
|
|
cause?: Error;
|
|
context?: Record<string, unknown>;
|
|
shouldRetry?: boolean;
|
|
}) {
|
|
super(message);
|
|
this.name = "PkiSyncError";
|
|
this.cause = cause;
|
|
this.context = context;
|
|
this.shouldRetry = shouldRetry;
|
|
}
|
|
}
|