>
> But with Jenkins build output console, it does not show the line number
> where the exception has occurred.
>
> In this case, based on method name ie `trim()` from log, I check wherever
> `trim()` method is used. But as I've used it at multiple places in same
> method, it becomes difficult
In Jenkins pipeline build, sometimes I've seen null pointer or other
exceptions like -
java.lang.NullPointerException: Cannot invoke method trim() on null
object
Generally if we run Java program through IDE or command line, if an
exception occurs we see at which line number the exception