In Java I can achieve exception chaining by passing another exception to the new exception like this
Java
try { doSomething(); } catch (Exception1 e