- java.lang.Object
-
- io.hotmoka.verification.issues.Issue
-
- All Implemented Interfaces:
Comparable<Issue>
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIssue(String where, String message)Creates an issue at the given class.protectedIssue(String where, String methodName, int line, String message)Creates an issue at the given program line.protectedIssue(String where, String fieldName, String message)Creates an issue at the given program field.
-
-
-
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 occursmessage- 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 occursfieldName- the name of the field where the issue occursmessage- 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 occursmethodName- the name of the method where the issue occursline- the line where the issue occurs. Use -1 if the issue is related to the method as a wholemessage- the message of the issue
-
-
Method Detail
-
compareTo
public final int compareTo(Issue other)
- Specified by:
compareToin interfaceComparable<Issue>
-
-