locknotgrantedexception.java

来自「Java的面向对象数据库系统的源代码」· Java 代码 · 共 46 行

JAVA
46
字号

package org.odmg;

/**
* This exception is thrown if a lock could not be granted on an object.
* @author	David Jordan (as Java Editor of the Object Data Management Group)
* @version ODMG 3.0
*/

public class LockNotGrantedException extends ODMGRuntimeException
{
/**
* Construct an instance of the exception.
*/
	public LockNotGrantedException()
  {
  	super();
  }

/**
* Construct an instance of the exception with a descriptive message.
* @param	msg	A description of the exception.
*/
  public LockNotGrantedException(String msg)
  {
  	super(msg);
  }
/*
	private	Object o;
  private	int	m;
*
* Construct an instance of the exception.
* @param	obj	The object that the application was trying to acquire a lock on.
* @param	mode	The lock mode that the application was attempting to acquire.
* @see	org.odmg.Transaction#lock
*
	public LockNotGrantedException(Object obj, int mode)
  {
  	super();
  	o = obj;
    m = mode;
  }
*/
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?