Skip to content

Add Builder for error codes with details in code #1

@jakobbraun

Description

@jakobbraun

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())

Metadata

Metadata

Assignees

Labels

featureProduct feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions