Package com.atlassian.bamboo.utils
Class BambooValidate
- java.lang.Object
-
- com.atlassian.bamboo.utils.BambooValidate
-
public class BambooValidate extends Object
Place for all validation methods you can't find in org.apache.commons.validator framework
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
notInsideTransaction()
Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.static void
notInsideTransaction(@Nullable String message)
Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.
-
-
-
Method Detail
-
notInsideTransaction
public static void notInsideTransaction()
Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.
-
notInsideTransaction
public static void notInsideTransaction(@Nullable @Nullable String message)
Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.- Parameters:
message
- the exception message you would like to see if the thread is inside transaction
-
-