HIGH

kotlin/dropped-exception-cause

A new exception thrown with only `e.message`. `throw RepositoryException(e.message)` loses the original type and trace, so a certificate-expiry outage is diagnosed as an app bug. Pass the cause: `throw RepositoryException("context", e)`.

Decided by
a checker, with no model call — the deterministic tier
Severity means
merge is a deliberate trade-off a reviewer acknowledges. The output contract
Applies to
**/*.kt, **/*.kts
Reaches
1 profile: mobile-android
Defined in
standards/stacks/kotlin.md:26

Read it in the terminal

The same facts, from the checkout you are already in — no browser, and no network.

terminal
$ npx redlinegate explain kotlin/dropped-exception-cause

Where this came from

You are most likely here from a review comment. A finding names its rule and, when your repository has told Redline where the standard is published, its address:

on the pull request
Redline/HIGH [kotlin/dropped-exception-cause]: …
  → …/r/kotlin/dropped-exception-cause

That second line is written by redline init --docs-url and is empty until an organisation sets one — there is no default, because a link to somebody else's copy of the standard is worse than no link. See Onboard a repository.

In context

The Kotlin standard lists this rule with the rest of its stack, in the file a reviewer and an AI assistant both read.

Other HIGH rules in this stack