Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FEATURE] Improve error handling in NuMojo #278

Open
Labels
@shivasankarka

Description

@shivasankarka

What & Why

NuMojo currently defines several custom error types. For example,ShapeError,IndexError, andMemoryError.
However, these are not used consistently across the codebase. Some parts still raise generic errors (e.g.raise Error(...)), which makes debugging harder for users and contributors. To improve developer experience and ensure clearer error messages, we should standardize error handling throughout the project.

Proposed Solution

  1. Refactor all instances of raise Error(...) (and other generic exceptions) to use the appropriate custom error types, such as ShapeError, IndexError, or MemoryError.
  2. Add new custom error types where existing ones don’t fit the context, ensuring each has a clear purpose and message.
  3. (Optional but encouraged) Add or update tests to verify that the correct error types are raised in relevant scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp