mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 11:38:55 +00:00
improvements: final adjustments/improvements
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
export class SecretSyncError extends Error {
|
||||
name: string;
|
||||
|
||||
error: unknown;
|
||||
error?: unknown;
|
||||
|
||||
secretKey?: string;
|
||||
|
||||
constructor({ name, error, secretKey }: { name?: string; error?: unknown; secretKey?: string } = {}) {
|
||||
super();
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user