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:
- [email protected] (Liam Miller-Cushon)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalGuardedBy(String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
IllegalGuardedBy
public IllegalGuardedBy(String message)
-
-
Method Detail
-
checkGuardedBy
public static void checkGuardedBy(boolean condition, String message)
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.
-
-