Hi,
Is there a difference to Exception toString and getMessage ? Following code produces the same output if I trow an exception like this:
throw new IndexOutOfBoundsException("Cannot read RecordList, is empty");
// ...
} catch (Exception e) {
log(e.toString() + " " + e.getMessage());
It then output 2 time the string I have given as argument in the constructor of the Exception. If both are the same, what is preferred ?