OPENJPA-891 - Add constructor per Pinaki's comment.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751476 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2009-03-08 17:31:07 +00:00
parent dab2ec2ead
commit f1d4abda25
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ public class LockException
} }
public LockException(Object failed, int timeout) { public LockException(Object failed, int timeout) {
this(failed, timeout, -1);
}
public LockException(Object failed, int timeout, int lockLevel) {
super(_loc.get("lock-timeout", Exceptions.toString(failed), super(_loc.get("lock-timeout", Exceptions.toString(failed),
String.valueOf(timeout))); String.valueOf(timeout)));
setFailedObject(failed); setFailedObject(failed);