Lets say I have a function like this
public JSONObject parseMessage(InputStream fileName) throws Exception {
And it throws an error where can I get the stack trace of that?
I know if I have something like
try {} catch(Exception e) {//I could save it to a var here}
But how to I save the stacktrace to are variable with a function that throws Exception
?
Thanks for all the help