Added a stackTrace method. Possibly needs renaming. It's in common use in other Jakarta projects such as Ant. Turns a Throwable into a String.