com.atlassian.bamboo.utils
Class BambooValidate

java.lang.Object
  extended by com.atlassian.bamboo.utils.BambooValidate

public class BambooValidate
extends java.lang.Object

Place for all validation methods you can't find in org.apache.commons.validator framework


Method Summary
static void notInsideTransaction()
          Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.
static void notInsideTransaction(java.lang.String message)
          Validate if thread is running outside transaction, throwing RuntimeException if it is inside transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
                                        java.lang.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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.