1 28 29 package org.apache.commons.transaction.memory; 30 31 32 41 public class LockException extends RuntimeException { 42 43 public static final int CODE_INTERRUPTED = 1; 44 45 public static final int CODE_TIMED_OUT = 2; 46 47 public static final int CODE_DEADLOCK_VICTIM = 3; 48 49 protected Object key; 50 51 protected String reason; 52 53 protected int code; 54 55 public LockException(String reason, int code, Object key) { 56 this.reason = reason; 57 this.key = key; 58 this.code = code; 59 } 60 } | Popular Tags |