@@ -7,16 +7,16 @@ import { ToolkitError } from '../shared/errors'
77import { i18n } from '../shared/i18n-helper'
88
99export class DocServiceError extends ToolkitError {
10- remainingIterations : number
11- constructor ( message : string , code : string , remainingIterations : number ) {
10+ remainingIterations ? : number
11+ constructor ( message : string , code : string , remainingIterations ? : number ) {
1212 super ( message , { code } )
1313 this . remainingIterations = remainingIterations
1414 }
1515}
1616
1717export class ReadmeTooLargeError extends DocServiceError {
18- constructor ( remainingIterations : number ) {
19- super ( i18n ( 'AWS.amazonq.doc.error.readmeTooLarge' ) , ReadmeTooLargeError . name , remainingIterations )
18+ constructor ( ) {
19+ super ( i18n ( 'AWS.amazonq.doc.error.readmeTooLarge' ) , ReadmeTooLargeError . name )
2020 }
2121}
2222
@@ -27,18 +27,14 @@ export class ReadmeUpdateTooLargeError extends DocServiceError {
2727}
2828
2929export class WorkspaceEmptyError extends DocServiceError {
30- constructor ( remainingIterations : number ) {
31- super ( i18n ( 'AWS.amazonq.doc.error.workspaceEmpty' ) , WorkspaceEmptyError . name , remainingIterations )
30+ constructor ( ) {
31+ super ( i18n ( 'AWS.amazonq.doc.error.workspaceEmpty' ) , WorkspaceEmptyError . name )
3232 }
3333}
3434
3535export class NoChangeRequiredException extends DocServiceError {
36- constructor ( remainingIterations : number ) {
37- super (
38- i18n ( 'AWS.amazonq.doc.error.noChangeRequiredException' ) ,
39- NoChangeRequiredException . name ,
40- remainingIterations
41- )
36+ constructor ( ) {
37+ super ( i18n ( 'AWS.amazonq.doc.error.noChangeRequiredException' ) , NoChangeRequiredException . name )
4238 }
4339}
4440
@@ -49,8 +45,8 @@ export class PromptRefusalException extends DocServiceError {
4945}
5046
5147export class ContentLengthError extends DocServiceError {
52- constructor ( remainingIterations : number ) {
53- super ( i18n ( 'AWS.amazonq.doc.error.contentLengthError' ) , ContentLengthError . name , remainingIterations )
48+ constructor ( ) {
49+ super ( i18n ( 'AWS.amazonq.doc.error.contentLengthError' ) , ContentLengthError . name )
5450 }
5551}
5652
0 commit comments