So if i call
public void throwException throws Exception {
throw new Exception("foo") ;
}
the output will look something like this:
java.lang.Exception: foo
at SomeClass.throwException(SomeClass.java:5)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
now if i click on (SomeClass.java:5)
, the IDE jumps to the 5-th line in SomeClass.java.
Is it possible to manually generate those hyperlinks, when using System.out or throwing an Exception? I already tried manipulating an Exception by changing a StackTraceElement, but it seems to work only with valid Java classes.
I'm working on a project, where i have to parse a uniquely defined file and would like to print hyperlinks, which would directly lead to the file, instead of the parse-method where a problem occurred.