Skip to content

Commit

Permalink
Add a new KV submission failure error (#11854)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
[Integration Kit] Add a new SUBMISSION_FAILED internal error
CHANGELOG_END
  • Loading branch information
fabiotudone-da authored Nov 24, 2021
1 parent aebc5a7 commit 7c3a2a7
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,20 @@ object KVErrors extends ErrorGroup()(ErrorGroups.rootErrorClass) {
super.context ++ metadata // Only in logs as the category is security sensitive
}
}

@Explanation("An unexpected error occurred while submitting a command to the ledger.")
@Resolution("Contact support.")
object SubmissionFailed
extends ErrorCode(
id = "SUBMISSION_FAILED",
ErrorCategory.SystemInternalAssumptionViolated,
) {
case class Reject(
details: String
)(implicit loggingContext: ContextualizedErrorLogger)
extends KVLoggingTransactionErrorImpl(
cause = s"Submission failure: $details"
)
}
}
}

0 comments on commit 7c3a2a7

Please sign in to comment.