Package soot.validation
Class UnitValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- soot.validation.ValidationException
-
- soot.validation.UnitValidationException
-
- All Implemented Interfaces:
Serializable
public class UnitValidationException extends ValidationException
This kind of validation exception can be used if a unit is the cause of an validation error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitValidationException(Unit concerned, Body body, String strMessage)Creates a new ValidationException, treated as an error.UnitValidationException(Unit concerned, Body body, String strMessage, boolean isWarning)Creates a new ValidationException.
-
Method Summary
-
Methods inherited from class soot.validation.ValidationException
getConcerned, getRawMessage, isWarning, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
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 IDEbody- the body which contains the concerned unitstrMessage- the message to display in an IDE supporting the concerned featureisWarning- 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 unitconcerned- 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
-
-