exasol / error-code-crawler-maven-plugin

Validator and crawler for exasol-error-codes in Java code
MIT License
1 stars 1 forks source link

Add Builder for error codes with details in code #1

Closed jakobbraun closed 3 years ago

jakobbraun commented 3 years ago

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 3 years ago

wrong repository