Add Builder for error codes with details in code
Closed this issue · 1 comments
jakobbraun commented
Add a builder like:
throw new IllegalArgumentException(ExceptionMessage.builder("E-STOLEN-BUCKIT-1")
.message("Oh noes! They stole my buckit at {{time}} with {{fish}}.")
.description("...")
.parameter("time", new Date(), "at which time was is stolen")
.parameter("fish", 5, "how often was it stolen already")
.unquotedParameter("")
.mitigation("...")
.mitigation("...")
.mitigation("...")
.build())
jakobbraun commented
wrong repository