Nim has a good take on exception tracking that's elegant, performant, and only on request (unlike Java's attempt).