Class IllegalGuardedBy
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
- All Implemented Interfaces:
Serializable
public class IllegalGuardedBy extends RuntimeException
An error that occurred during the parsing or binding of a GuardedBy expression.
- Author:
- cushon@google.com (Liam Miller-Cushon)
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IllegalGuardedBy(String message)
-
Method Summary
Modifier and Type Method Description static 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.String
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
-