Annotation Interface HelixException
Annotation that marks Helix exceptions for specialized error handling and error message creation by the framework.
-
Optional Element Summary
Optional Elements
-
Element Details
-
code
String codeSets the error code.- Returns:
- error code
- Default:
- ""
-
status
int statusSets the http status.- Returns:
- http status
- Default:
- 500
-
message
String messageSets the error message.Message may contain placeholder strings in the format `${variable}` for replacement by exception properties at runtime.
- Returns:
- error message
- Default:
- ""
-
showFields
boolean showFieldsSets whether fields with getters on the exception will be included as "attributes" on the error message.- Returns:
trueif fields will be included,falseif not
- Default:
- false
-