ilog.rules.dt.error

Interface IlrDTError



  • public interface IlrDTError
    IlrDTError represents a DT error generated by the interpretation of the DT model.

    This interface is not to be implemented outside the DT framework.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object[] getArgs()
      Returns the arguments associated with this error.
      java.lang.String getFormattedMessage(IlrDTContext dtContext, boolean includeLocation)
      Returns a readable error message.
      java.lang.String getMessage()
      Returns the message associated with this error.
      int getSeverity()
      Returns the severity of this error.
      boolean isTreeError()
      Tests if this a decision tree error.
    • Method Detail

      • getSeverity

        int getSeverity()
        Returns the severity of this error.
        Returns:
        The error severity.
      • getMessage

        java.lang.String getMessage()
        Returns the message associated with this error.
        Returns:
        This return message is a key. Call getFormattedMessage(IlrDTContext, boolean) to retrieve a readable error message.
      • getArgs

        java.lang.Object[] getArgs()
        Returns the arguments associated with this error.
        Returns:
        An array of arguments. If no arguments are associated with this error, null is returned.
      • getFormattedMessage

        java.lang.String getFormattedMessage(IlrDTContext dtContext,
                                           boolean includeLocation)
        Returns a readable error message.
        Parameters:
        dtContext - The DT context representing the DT Model.
        includeLocation - Set to true so the message returned includes information about the location of this error.
        Returns:
        A localized error message.
      • isTreeError

        boolean isTreeError()
        Tests if this a decision tree error.
        Returns:
        If this is a decision tree error, true is returned.

© Copyright IBM Corp. 1987, 2017