Class UnitValidationException

    • Constructor Detail

      • UnitValidationException

        public UnitValidationException​(Unit concerned,
                                       Body body,
                                       String strMessage,
                                       boolean isWarning)
        Creates a new ValidationException.
        Parameters:
        concerned - the unit which is concerned and could be highlighted in an IDE
        body - the body which contains the concerned unit
        strMessage - the message to display in an IDE supporting the concerned feature
        isWarning - whether the exception can be considered as a warning message
      • UnitValidationException

        public UnitValidationException​(Unit concerned,
                                       Body body,
                                       String strMessage)
        Creates a new ValidationException, treated as an error.
        Parameters:
        body - the body which contains the concerned unit
        concerned - the object which is concerned and could be highlighted in an IDE; for example an unit, a SootMethod, a SootClass or a local.
        strMessage - the message to display in an IDE supporting the concerned feature