Development

kotlin-throwable-policy is a Kotlin Multiplatform library. In the monorepo workspace, build and test it through the dev tooling:

./dev build kotlin-throwable-policy

From the project directory, or when working from a standalone checkout, run Gradle directly:

./gradlew build

Documentation Standards

Public KDoc should state:

  • whether a helper classifies, rethrows, unwraps, or mutates suppressed exceptions
  • how Policy affects traversal, depth limits, suppressed scanning, and allocation
  • platform caveats for interruption, cancellation, and fatal-error detection

Keep the high-level policy in POLICY.md; keep API-specific behavior in KDoc and generated Dokka.