Java examples for java.lang:Throwable
get Current runnable code Line Number
//package com.java2s; public class Main { public static int getLineNumber() { return Thread.currentThread().getStackTrace()[2].getLineNumber(); }//from w w w. ja v a 2 s . co m }