You must make use of the built-in line separator. The benefit is the fact you won't have to concern what procedure you code is jogging on, it can just work. Because Java one.7 Your second illustration will reset the exception's stack trace. The very first most properly preserves the origins with the exception. sixty nine Git makes it possible