Add support for filename and linenumber in exception messages