Class Issue

  • All Implemented Interfaces:
    Comparable<Issue>
    Direct Known Subclasses:
    Error, Warning

    public abstract class Issue
    extends Object
    implements Comparable<Issue>
    An issue generated during the verification of the class files of a Takamaka program. Issues are first ordered by where they occur, then by message and finally by issue class name.
    • Field Detail

      • where

        public final String where
      • message

        public final String message
    • Constructor Detail

      • Issue

        protected Issue​(String where,
                        String message)
        Creates an issue at the given class.
        Parameters:
        where - a string that lets the user identify the class where the issue occurs
        message - the message of the issue
      • Issue

        protected Issue​(String where,
                        String fieldName,
                        String message)
        Creates an issue at the given program field.
        Parameters:
        where - a string that lets the user identify the class where the issue occurs
        fieldName - the name of the field where the issue occurs
        message - the message of the issue
      • Issue

        protected Issue​(String where,
                        String methodName,
                        int line,
                        String message)
        Creates an issue at the given program line.
        Parameters:
        where - a string that lets the user identify the class where the issue occurs
        methodName - the name of the method where the issue occurs
        line - the line where the issue occurs. Use -1 if the issue is related to the method as a whole
        message - the message of the issue