mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Add line number to toString()
This commit is contained in:
parent
82f41cbcd5
commit
908f93e213
@ -88,4 +88,16 @@ public class WasmException extends Exception {
|
||||
public int getLineNumber() {
|
||||
return lineNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
String str = super.toString();
|
||||
if( lineNumber > 0 ) {
|
||||
str += " at line: " + lineNumber;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user