I have to throw an exception with a custom message. I want to do something like in SL4J:
throw new RuntimeException("Error with id {} in file {}", id, file);
Is there any library to do this?
It's very awful to code something like:
throw new RuntimeException("Error with id " + id + " in file " + file);
Thanks!
Comments
Post a Comment