Class ErrorMessageDeclaration


  • public class ErrorMessageDeclaration
    extends Object
    This class represents declaration
    • Method Detail

      • 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
      • getMitigations

        public List<String> getMitigations()
        Get a list of mitigations.
        Returns:
        mitigations
      • getNamedParameters

        public List<NamedParameter> getNamedParameters()
        Get the named parameters.
        Returns:
        list of named parameters
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object