Package com.atlassian.bamboo.utils
Class BambooValidate
java.lang.Object
com.atlassian.bamboo.utils.BambooValidate
Place for all validation methods you can't find in org.apache.commons.validator framework
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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 Details
-
notInsideTransaction
public static void notInsideTransaction()Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction. -
notInsideTransaction
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
-