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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkGuardedBy
(boolean condition, String message) Throws anIllegalGuardedBy
exception if the given condition is false.static void
checkGuardedBy
(boolean condition, String formatString, Object... formatArgs) Throws anIllegalGuardedBy
exception if the given condition is false.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
IllegalGuardedBy
-
-
Method Details
-
checkGuardedBy
Throws anIllegalGuardedBy
exception if the given condition is false. -
checkGuardedBy
@FormatMethod public static void checkGuardedBy(boolean condition, @FormatString String formatString, Object... formatArgs) Throws anIllegalGuardedBy
exception if the given condition is false. -
toString
-