public class ErrorDataHolder extends Object
Modifier | Constructor and Description |
---|---|
protected |
ErrorDataHolder(Element annotatedElement)
Setting up data during the generation of the builder in annotation processor.
|
protected |
ErrorDataHolder(String errorName,
String userMessage,
String technicalMessage,
String solution,
Impact impact,
Severity severity)
Holder of error data.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getErrorName()
Returns the generated error name.
|
protected Impact |
getImpact()
Returns the impact specified in the annotation.
|
protected Severity |
getSeverity()
Returns the severity specified in the annotation.
|
protected String |
getSolution()
Returns the solution specified in the annotation.
|
protected String |
getTechnicalMessage()
Returns the technical message specified in the annotation.
|
protected String |
getUserMessage()
Returns the user message specified in the annotation.
|
protected void |
insertPlaceholders()
Replaces placeholders with their values.
|
protected void |
put(String placeholder,
Object value)
Puts placeholder and its value into a HashMap.
|
protected ErrorDataHolder(String errorName, String userMessage, String technicalMessage, String solution, Impact impact, Severity severity)
errorName
- name of the error.userMessage
- user message of the error.technicalMessage
- technical message of the error.solution
- solution of the error.impact
- impact of the error on data lineage.severity
- severity (warn, error, fatal) of the error.protected ErrorDataHolder(Element annotatedElement)
annotatedElement
- The annotated error method.protected void put(String placeholder, Object value)
placeholder
- Name of the placeholder.value
- Value of the placeholder.protected void insertPlaceholders()
protected String getErrorName()
protected String getUserMessage()
protected String getTechnicalMessage()
protected String getSolution()
protected Impact getImpact()
protected Severity getSeverity()
Copyright © 2020. All rights reserved.