01: // MultipleLockException.java
02: // $Id: MultipleLockException.java,v 1.2 2000/08/16 21:37:53 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.tools.resources;
07:
08: /**
09: * The resource store is unable to restore a resource.
10: */
11:
12: public class MultipleLockException extends Exception {
13:
14: int nb = 0;
15:
16: public int getNbLock() {
17: return nb;
18: }
19:
20: public MultipleLockException(int nb, Resource resource, String msg) {
21: super (nb + " locks on " + resource.getIdentifier() + " " + msg);
22: this.nb = nb;
23: }
24:
25: }
|