java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.civl.mc.model.IF.CIVLException
dev.civl.mc.log.IF.CIVLExecutionException
- All Implemented Interfaces:
Serializable
This represents an error during the execution of a program.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.civl.mc.model.IF.CIVLException
CIVLException.Certainty -
Field Summary
Fields inherited from class dev.civl.mc.model.IF.CIVLException
source -
Constructor Summary
ConstructorsConstructorDescriptionCIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String message, State state) Constructs new CIVLExecutionException with no associated process.CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String message, State state, CIVLSource source) Constructs new CIVLExecutionException with no associated process.CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String process, String message, State state, int pid, CIVLSource source) Constructs a new CIVLExecutionException with an associated process.CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String process, String message, State state, int pid, CIVLSource source, StringBuffer stateString) Constructs a new CIVLExecutionException with an associated process and stateString. -
Method Summary
Methods inherited from class dev.civl.mc.model.IF.CIVLException
getSourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CIVLExecutionException
public CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String process, String message, State state, int pid, CIVLSource source) Constructs a new CIVLExecutionException with an associated process.- Parameters:
property- the CIVLProperty that has been violatedcertainty- the certainty with which this is known to be an error in the program being verifiedprocess- process name, i.e., "p"+process identifiermessage- a message explaining the errorstate- the state the exception appears inpid- the process id of the process which triggered the exceptionsource- the source code element associated to the error; may be null
-
CIVLExecutionException
public CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String process, String message, State state, int pid, CIVLSource source, StringBuffer stateString) Constructs a new CIVLExecutionException with an associated process and stateString.- Parameters:
property- the CIVLProperty that has been violatedcertainty- the certainty with which this is known to be an error in the program being verifiedprocess- process name, i.e., "p"+process identifiermessage- a message explaining the errorstate- the state the exception appears inpid- the process id of the process which triggered the exceptionsource- the source code element associated to the error; may be nullstateString- the string representation of the state where the error occurs; may be null
-
CIVLExecutionException
public CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String message, State state) Constructs new CIVLExecutionException with no associated process.- Parameters:
property- the CIVLProperty that has been violatedcertainty- the certainty with which this is known to be an error in the program being verifiedmessage- a message explaining the errorstate- the state the exception appears in
-
CIVLExecutionException
public CIVLExecutionException(CIVLProperty property, CIVLException.Certainty certainty, String message, State state, CIVLSource source) Constructs new CIVLExecutionException with no associated process.- Parameters:
property- the CIVLProperty that has been violatedcertainty- the certainty with which this is known to be an error in the program being verifiedmessage- a message explaining the errorstate- the state the exception appears insource- the source code element associated to the error; may be null
-
-
Method Details
-
certainty
- Returns:
- the certainty of this error.
-
civlProperty
- Returns:
- the kind of this error.
-
state
- Returns:
- the state in which this error occurred.
-
isReported
public boolean isReported()Is this error reported?- Returns:
- true iff the error has already been reported
-
setReported
public void setReported()Set this error to be reported. -
toString
- Overrides:
toStringin classCIVLException
-