You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'I\'m sorry, I can\'t generate code for your request. Please make sure your message and code files comply with the <a href="https://aws.amazon.com/machine-learning/responsible-ai/policy/">AWS Responsible AI Policy.</a>',
@@ -71,12 +75,14 @@ export class PromptRefusalException extends ToolkitError {
@@ -97,41 +104,46 @@ export class IllegalStateTransition extends ToolkitError {
97
104
}
98
105
99
106
exportclassContentLengthErrorextendsToolkitError{
107
+
staticerrorName='ContentLengthError'
100
108
constructor(){
101
109
super(
102
110
'The folder you selected is too large for me to use as context. Please choose a smaller folder to work on. For more information on quotas, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html#quotas" target="_blank">Amazon Q Developer documentation.</a>',
103
-
{code: 'ContentLengthError'}
111
+
{code: ContentLengthError.errorName}
104
112
)
105
113
}
106
114
}
107
115
108
116
exportclassZipFileErrorextendsToolkitError{
117
+
staticerrorName='ZipFileError'
109
118
constructor(){
110
-
super('The zip file is corrupted',{code: 'ZipFileError'})
119
+
super('The zip file is corrupted',{code: ZipFileError.errorName})
'Sorry, you\'ve reached the quota for number of iterations on an implementation plan. You can generate code for this task or discuss a new plan. For more information on quotas, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html#quotas">Amazon Q Developer documentation</a>.',
'Sorry, you\'ve reached the quota for number of iterations on code generation. You can insert this code in your files or discuss a new plan. For more information on quotas, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html#quotas" target="_blank">Amazon Q Developer documentation.</a>',
0 commit comments