Skip to content

feat: Exception best practices #838

@knocte

Description

@knocte

Should highlight violations when:

  • NRE or StackoverflowException or OutOfMemoryException is thrown (only the runtime should throw this).
  • Exception's Message or StackTrace proerties are used (they would miss exception type, recommend ex.ToString() instead).
  • If raise is not inside a try/with block, maybe recommend using Result type? (this should probably be a separate rule; or maybe each of the items in this list should be a different rule)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions