christophsturm / filepeek

peek into kotlin or java source files.
MIT License
4 stars 6 forks source link

Add a getCallerFileInfo overload that accepts an exception #14

Open dump247 opened 1 year ago

dump247 commented 1 year ago

Building the exception is relatively cheap, but reading the stack trace is costly. This overload supports the case of capturing the stack trace, but delaying reading the stack trace until needed.