Guys, good morning!
Determined to help me with a question? I am entering an exception action and I am not welcome, I am doing the following:
try {
} catch (Exception e) {
System.out.println (e.getCause ()) // I’ve tried this way
System.out.println (e.getCause (). GetMessage ()) // And this way too
}
but both as forms come null,
how could it be to get a cause? Example:
In the middle of the test an application is unavailable, it has to show that the error regarding the unavailability of the system, among other errors that can happen.
thanks in advance!