Package com.exsol.errorcodemodel
Class ErrorMessageDeclaration
- java.lang.Object
-
- com.exsol.errorcodemodel.ErrorMessageDeclaration
-
public class ErrorMessageDeclaration extends Object
This class represents declaration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorMessageDeclaration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorMessageDeclaration.Builderbuilder()booleanequals(Object other)StringgetDeclaringPackage()Get the declaring java package.StringgetIdentifier()Get the error codeintgetLine()Line number of the ExaError.messageBuilder call.StringgetMessage()Get the message (including placeholders).List<String>getMitigations()Get a list of mitigations.List<NamedParameter>getNamedParameters()Get the named parameters.StringgetSourceFile()Get the file in which this error message is declared.inthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static ErrorMessageDeclaration.Builder builder()
-
getIdentifier
public String getIdentifier()
Get the error code- Returns:
- error code
-
getSourceFile
public String getSourceFile()
Get the file in which this error message is declared.- Returns:
- path of the file relative to the project's directory
-
getLine
public int getLine()
Line number of the ExaError.messageBuilder call.- Returns:
- line number
-
getDeclaringPackage
public String getDeclaringPackage()
Get the declaring java package.- Returns:
- declaring java package
-
getMessage
public String getMessage()
Get the message (including placeholders).- Returns:
- message
-
getNamedParameters
public List<NamedParameter> getNamedParameters()
Get the named parameters.- Returns:
- list of named parameters
-
-