Skip to content

Improve and optimize exception throwing around the codebase #30

@laicasaane

Description

@laicasaane

Describe your proposed feature?

Many places are still using inline throw statements, while other places use ExceptionHelpers.

Inline throw statements can also cause unnecessary string allocations (locals init). Using ExceptionHelpers is a simple optimization in most cases where exceptions don't happen.

Describe your feature in detail

  • Replace each inline throw statement with a call to a static method of ExceptionHelpers.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestperformanceThis issue is performance-related

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions