Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Exception #1529

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

sampersand
Copy link
Contributor

@sampersand sampersand commented Sep 19, 2023

This updates the Exception type definitions and its associated unit tests.

More specifically, this:

  • Removes < Object from Exception
  • Exception.exception: Now accepts string | _ToS (instead of just String) and returns instance.
  • Exception#==: Updated parameter name to obj instead of arg0.
  • Exception#backtrace and Exception#backtrace_locations: Removed leading ::
  • Exception#detailed_message: highlight is now bool? instead of boolish, and the **untyped param is now named.
  • Exception#exception: added ?self to the no-argument case; message (renamed from arg0) now accepts string | _ToS and returns instance
  • Exception#initialize: arg0 renamed to message and now accepts string | _ToS. Also returns self.
  • Exception#set_backtrace: Removed leading ::s, renamed arg0 to backtrace
  • Exception#full_message: highlight and order now accept nil, order now also accepts string (which, should be "top" or "bottom".

@sampersand sampersand force-pushed the swesterman/23-09-19/exception branch from 4a233bd to 26dc308 Compare September 19, 2023 21:02
@sampersand sampersand marked this pull request as ready for review September 19, 2023 21:04
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@soutaro soutaro added this to the RBS 3.3 milestone Sep 21, 2023
@soutaro soutaro added this pull request to the merge queue Sep 21, 2023
Merged via the queue into ruby:master with commit 134a3ca Sep 21, 2023
@soutaro soutaro added the Released PRs already included in the released version label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released PRs already included in the released version
Development

Successfully merging this pull request may close these issues.

2 participants