Skip to content

Add dedicated exception handling for filter method conflicts - #63

Merged
kettasoft merged 2 commits into
masterfrom
feat/filter-method-conflicts
Sep 7, 2026
Merged

Add dedicated exception handling for filter method conflicts#63
kettasoft merged 2 commits into
masterfrom
feat/filter-method-conflicts

Conversation

@kettasoft

Copy link
Copy Markdown
Owner

Summary

Detect filter methods that conflict with core Filterable methods and report them using a dedicated exception.

Changes

  • Add FilterableMethodConflictException
  • Detect conflicts with methods such as apply, filter, and getBuilder
  • Perform conflict detection outside attempt() so configuration errors are never silently swallowed
  • Preserve the current Payload-based filtering pipeline
  • Document reserved method names and $mentors as the recommended alternative
  • Add tests for single and multiple method conflicts
  • Verify that non-conflicting filter methods continue working
  • Add coverage for the exception message

- Add test for single method conflict detection
- Add test for multiple core methods conflicts
- Add test to verify non-conflicting methods work correctly
- Add test for exception message formatting
- Move conflict check outside attempt() block to ensure exception is thrown
- Fix Invokable engine to check for conflicts before executing filter methods

Closes: Exception handling for method name conflicts
@kettasoft kettasoft self-assigned this Sep 7, 2026
@kettasoft kettasoft added the enhancement New feature or request label Sep 7, 2026
@kettasoft
kettasoft merged commit a5b6264 into master Sep 7, 2026
1 check passed
@kettasoft
kettasoft deleted the feat/filter-method-conflicts branch September 7, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant