Class IllegalGuardedBy
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
- All Implemented Interfaces:
Serializable
An error that occurred during the parsing or binding of a GuardedBy expression.
- Author:
- cushon@google.com (Liam Miller-Cushon)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckGuardedBy(boolean condition, String message) Throws anIllegalGuardedByexception if the given condition is false.static voidcheckGuardedBy(boolean condition, String formatString, Object... formatArgs) Throws anIllegalGuardedByexception if the given condition is false.toString()Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
IllegalGuardedBy
-
-
Method Details
-
checkGuardedBy
Throws anIllegalGuardedByexception if the given condition is false. -
checkGuardedBy
@FormatMethod public static void checkGuardedBy(boolean condition, @FormatString String formatString, Object... formatArgs) Throws anIllegalGuardedByexception if the given condition is false. -
toString
-