package org.jboss.forge.furnace.impl.lock;

import org.jboss.forge.furnace.exception.ContainerException;
import org.jboss.forge.furnace.lock.LockManager;

/**
 * Thrown when a deadlock is detected in the {@link LockManager}. It is intentional that this type does not extend from
 * {@link ContainerException} because it represents a developer error, and should NEVER be caught. (This is the reason
 * why it extends from {@link Error})
 * 
 * @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
 */
public class DeadlockError extends Error
{
   private static final long serialVersionUID = -5559271290352031320L;

   /**
    * Create a new {@link DeadlockError} with the given message.
    */
   public DeadlockError(String string)
   {
      super(string);
   }
}
package org.jboss.forge.furnace.impl.lock;

import org.jboss.forge.furnace.exception.ContainerException;
import org.jboss.forge.furnace.lock.LockManager;

/**
 * Thrown when a deadlock is detected in the {@link LockManager}. It is intentional that this type does not extend from
 * {@link ContainerException} because it represents a developer error, and should NEVER be caught. (This is the reason
 * why it extends from {@link Error})
 * 
 * @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
 */
class DeadlockError extends Error
{
   private static final long serialVersionUID = -5559271290352031320L;

   /**
    * Create a new {@link DeadlockError} with the given message.
    */
   public DeadlockError(String string)
   {
      super(string);
   }
}
Package private DeadlockError