I suppose this is the documentation you were looking for:
The functions
erlang:exit/1anderlang:exit/2are named similarly but provide very different functionalities. Theerlang:exit/1function should be used when the intent is to stop the current process whileerlang:exit/2should be used when the intent is to send an exit signal to another process. Note also thaterlang:exit/1raises an exception that can be caught whileerlang:exit/2does not cause any exception to be raised.






















