Skip to content

CRARCH0002 No built-in exception types

  • Category: Architecture
  • Default severity: Warning
  • Diagnostic ID: CRARCH0002

Throwing framework exceptions hides domain intent.

Throw custom domain exceptions instead of '{0}'

Replace built-in exceptions with custom domain exceptions that describe the business error. Identify the business failure at the throw site and choose a custom exception named for it, rather than substituting another generic framework exception. CRARCH0001 describes the naming convention.