Skip to content

Commit 5a75311

Browse files
committed
fix(dev): no trailing spaces issue
1 parent d962370 commit 5a75311

File tree

1 file changed

+3
-3
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev

1 file changed

+3
-3
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevExceptions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ class UploadURLExpired(operation: String, desc: String?, cause: Throwable? = nul
4646
class CodeIterationLimitException(operation: String, desc: String?, cause: Throwable? = null) :
4747
FeatureDevException(message("amazonqFeatureDev.code_generation.iteration_limit.error_text"), operation, desc, cause)
4848

49-
internal fun noChangeRequiredException(operation: String, desc: String?): Nothing =
50-
throw NoChangeRequiredException(operation, desc, cause = null)
51-
5249
class MonthlyConversationLimitError(message: String, operation: String, desc: String?, cause: Throwable? = null) :
5350
FeatureDevException(message, operation, desc, cause)
5451

@@ -76,3 +73,6 @@ class ConversationIdNotFoundException(operation: String, desc: String?, cause: T
7673
val denyListedErrors = arrayOf("Deserialization error", "Inaccessible host", "UnknownHost")
7774
fun createUserFacingErrorMessage(message: String?): String? =
7875
if (message != null && denyListedErrors.any { message.contains(it) }) "$FEATURE_NAME API request failed" else message
76+
77+
fun noChangeRequiredException(operation: String, desc: String?): Nothing =
78+
throw NoChangeRequiredException(operation, desc, cause = null)

0 commit comments

Comments
 (0)