Skip to content

Improve error handling in parameter operations #347

@MaxGhenis

Description

@MaxGhenis

The parameter operations module has several areas where error handling could be improved:

  1. In , there are bare except blocks that catch all exceptions, making debugging difficult.
  2. The error messages aren't specific enough about what went wrong or how to fix it.
  3. Generic ValueError exceptions are used instead of specific error types.

Proposed Solution

Create a new class that:

  • Includes the full parameter path that was requested
  • Specifies exactly which part of the path failed
  • Provides better guidance for bracket syntax errors
  • Suggests similar parameter names when there's a near match

This will make debugging parameter-related issues much easier for users and developers.

Related files:

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