Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 12x 12x 42x | export enum ErrorCode {
UnknownError = 'E1000',
AWSResourceNotFound = 'E2100',
AWSAccessDenied = 'E2200',
LambdaFunctionNotFound = 'E3100',
CloudFrontDistributionNotFound = 'E4100',
CacheBehaviorNotFound = 'E5100',
CacheBehaviorPatternNotDefined = 'E5200',
LambdaFunctionUpdateFailed = 'E6000',
LambdaFunctionAssociationNotFound = 'E6100',
LambdaFunctionARNNotFound = 'E7100',
LambdaFunctionWrongNewVersionsCount = 'E8000',
LambdaFunctionNewVersionNotActive = 'E8100',
LambdaFunctionCurrentRevisionNotDefined = 'E8200',
LambdaFunctionUpdateRevisionNotCreated = 'E8300',
}
export class ApiException extends Error {
public readonly code: ErrorCode
constructor(code: ErrorCode = ErrorCode.UnknownError) {
super()
this.code = code
}
get name() {
return this.code
}
}
|