Class MappingError

All Implemented Interfaces:
KnowledgeBuilderError, KnowledgeBuilderResult

public class MappingError extends DroolsError
MappingError A class to represent errors found in a DSL mapping Created: 11/04/2006
  • Field Details

  • Constructor Details

    • MappingError

      public MappingError(int errorCode, int template, int offset, String token, String templateText, int line)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns this error code
      Returns:
    • getLines

      public int[] getLines()
      Description copied from class: BaseKnowledgeBuilderResultImpl
      Returns the lines of the error in the source file
      Specified by:
      getLines in interface KnowledgeBuilderResult
      Specified by:
      getLines in class BaseKnowledgeBuilderResultImpl
    • getOffset

      public int getOffset()
      Returns:
      the offset
    • getTemplate

      public int getTemplate()
      Returns:
      the template
    • getTemplateText

      public String getTemplateText()
      Returns:
      the original content.