This commit is contained in:
2026-04-07 14:50:23 +09:00
commit b4e485502b
4778 changed files with 2017091 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function AuthFailedError(errorMessage?: string, errorCode?: number): CustomError;

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class BadGatewayError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor(userMessage: any);
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class ConnectionTimeoutError extends CustomError {
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,11 @@
import { ProblemError } from '@snyk/error-catalog-nodejs-public';
export declare class CustomError extends Error {
innerError: any;
code: number | undefined;
userMessage: string | undefined;
strCode: string | undefined;
protected _errorCatalog: ProblemError | undefined;
constructor(message: string);
set errorCatalog(ec: ProblemError | undefined);
get errorCatalog(): ProblemError | undefined;
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class DockerImageNotFoundError extends CustomError {
private static ERROR_CODE;
constructor(image: string);
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class SarifFileOutputEmptyError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1 @@
export declare function errorMessageWithRetry(message: string): string;

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class ExcludeFlagBadInputError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class ExcludeFlagInvalidInputError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class FailOnError extends CustomError {
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class FailedToGetVulnerabilitiesError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor(userMessage: any, statusCode: any);
}

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function FailedToGetVulnsFromUnavailableResource(root: string, statusCode: number): CustomError;

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class FailedToLoadPolicyError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,7 @@
import { ProblemError } from '@snyk/error-catalog-nodejs-public';
import { CustomError } from './custom-error';
export declare class FailedToRunTestError extends CustomError {
private static ERROR_MESSAGE;
innerError: any | undefined;
constructor(userMessage: any, errorCode?: any, innerError?: any, errorCatalog?: ProblemError);
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
import { SupportedPackageManagers } from '../package-managers';
export declare class FeatureNotSupportedByPackageManagerError extends CustomError {
readonly feature: string;
constructor(feature: string, packageManager: SupportedPackageManagers, additionalUserHelp?: string);
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class FileFlagBadInputError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,8 @@
import { CustomError } from '.';
import { ProblemError } from '@snyk/error-catalog-nodejs-public';
export declare class FormattedCustomError extends CustomError {
formattedUserMessage: string;
constructor(message: string, formattedUserMessage: string, userMessage?: string, errorCatalog?: ProblemError);
set errorCatalog(ec: ProblemError | undefined);
get errorCatalog(): ProblemError | undefined;
}

View File

@@ -0,0 +1,30 @@
export { MissingApiTokenError } from './missing-api-token';
export { FileFlagBadInputError } from './file-flag-bad-input';
export { MissingTargetFileError } from './missing-targetfile-error';
export { NoSupportedManifestsFoundError } from './no-supported-manifests-found';
export { NoSupportedSastFiles } from './no-supported-sast-files-found';
export { CustomError } from './custom-error';
export { MonitorError } from './monitor-error';
export { ValidationError } from './validation-error';
export { ConnectionTimeoutError } from './connection-timeout-error';
export { FailedToLoadPolicyError } from './failed-to-load-policy-error';
export { PolicyNotFoundError } from './policy-not-found-error';
export { InternalServerError } from './internal-server-error';
export { BadGatewayError } from './bad-gateway-error';
export { ServiceUnavailableError } from './service-unavailable-error';
export { FailedToGetVulnerabilitiesError } from './failed-to-get-vulnerabilities-error';
export { FailedToGetVulnsFromUnavailableResource } from './failed-to-get-vulns-from-unavailable-resource';
export { UnsupportedPackageManagerError } from './unsupported-package-manager-error';
export { FailedToRunTestError } from './failed-to-run-test-error';
export { TooManyVulnPaths } from './too-many-vuln-paths';
export { AuthFailedError } from './authentication-failed-error';
export { FeatureNotSupportedForOrgError } from './unsupported-feature-for-org-error';
export { MissingOptionError } from './missing-option-error';
export { MissingArgError } from './missing-arg-error';
export { ExcludeFlagBadInputError } from './exclude-flag-bad-input';
export { UnsupportedOptionCombinationError } from './unsupported-option-combination-error';
export { FeatureNotSupportedByPackageManagerError } from './feature-not-supported-by-package-manager-error';
export { DockerImageNotFoundError } from './docker-image-not-found-error';
export { NotFoundError } from './not-found-error';
export { errorMessageWithRetry } from './error-with-retry';
export { FormattedCustomError } from './formatted-custom-error';

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class InternalServerError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor(userMessage: any);
}

View File

@@ -0,0 +1,4 @@
import { CustomError } from './custom-error';
export declare class InvalidDetectionDepthValue extends CustomError {
constructor();
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class InvalidRemoteUrlError extends CustomError {
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class JsonFileOutputBadInputError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,5 @@
declare function _exports(command: any): Promise<never>;
declare namespace _exports {
function message(error: any): any;
}
export = _exports;

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function MisconfiguredAuthInCI(): CustomError;

View File

@@ -0,0 +1,15 @@
import { CustomError } from './custom-error';
export declare class MissingApiTokenError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
/**
* isMissingApiToken returns whether the error instance is a missing API token
* error.
*
* Defined as a property so that the same expression resolves as "falsy"
* (undefined) when other error types are tested.
*/
get isMissingApiToken(): boolean;
constructor();
}

View File

@@ -0,0 +1,4 @@
import { CustomError } from './custom-error';
export declare class MissingArgError extends CustomError {
constructor();
}

View File

@@ -0,0 +1,4 @@
import { CustomError } from './custom-error';
export declare class MissingOptionError extends CustomError {
constructor(option: string, required: string[]);
}

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function MissingTargetFileError(path: string): CustomError;

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class MonitorError extends CustomError {
private static ERROR_MESSAGE;
constructor(errorCode: any, message: any);
}

View File

@@ -0,0 +1,11 @@
import { CustomError } from './custom-error';
export declare class NestedCustomError extends CustomError {
constructor(message: string, innerError?: any);
get nestedName(): string;
get nestedStack(): string | undefined;
get nestedMessage(): string;
get nestedUserMessage(): string | undefined;
get nestedCode(): number | undefined;
get nestedStrCode(): string | undefined;
toString(): string;
}

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function NoSupportedManifestsFoundError(atLocations: string[]): CustomError;

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class NoSupportedSastFiles extends CustomError {
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class NotFoundError extends CustomError {
private static ERROR_CODE;
private static ERROR_MESSAGE;
constructor(userMessage: any);
}

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
import { SupportedPackageManagers } from '../package-managers';
import { Ecosystem } from '../ecosystems/types';
export declare class FeatureNotSupportedByEcosystemError extends CustomError {
readonly feature: string;
constructor(feature: string, ecosystem: SupportedPackageManagers | Ecosystem);
}

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class PolicyNotFoundError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class ServiceUnavailableError extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor(userMessage: any);
}

View File

@@ -0,0 +1,2 @@
import { CustomError } from './custom-error';
export declare function TokenExpiredError(): CustomError;

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class TooManyVulnPaths extends CustomError {
private static ERROR_CODE;
private static ERROR_STRING_CODE;
private static ERROR_MESSAGE;
constructor();
}

View File

@@ -0,0 +1,6 @@
import { CustomError } from './custom-error';
export declare class UnsupportedEntitlementError extends CustomError {
readonly entitlement: string;
private static ERROR_CODE;
constructor(entitlement: string, userMessage?: string);
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class FeatureNotSupportedForOrgError extends CustomError {
readonly org: string;
constructor(org: string, feature?: string, additionalUserHelp?: string);
}

View File

@@ -0,0 +1,7 @@
import { CustomError } from './custom-error';
export declare class UnsupportedOptionCombinationError extends CustomError {
private static ERROR_MESSAGE;
code: number;
userMessage: string;
constructor(options: string[]);
}

View File

@@ -0,0 +1,5 @@
import { CustomError } from './custom-error';
export declare class UnsupportedPackageManagerError extends CustomError {
private static ERROR_MESSAGE;
constructor(packageManager: any);
}

View File

@@ -0,0 +1,4 @@
import { CustomError } from './custom-error';
export declare class ValidationError extends CustomError {
constructor(message: string);
}