sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Interception.rescue

Called by platform-specific implementations whenever an exception is raised.

The arguments will be forwarded on to all listeners added via {listen} that
haven't been removed via {unlisten}.

For efficiency, this block will never be called unless there are active
listeners.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/interception/lib/interception.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Interception-rescue-for-pr


# Commit to git

git add app/server/ruby/vendor/interception/lib/interception.rbgit commit -m "better docs for Interception.rescue"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Interception-rescue-for-pr

hub pull-request


# Celebrate!