objectnamenotfoundexception.java

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

JAVA
54
字号

package org.odmg;

/**
* An attempt to get a object via its name using <code>Database.lookup</code>
* and the name is not associated with an object in the database.
* @author	David Jordan (as Java Editor of the Object Data Management Group)
* @version ODMG 3.0
* @see org.odmg.Database#lookup
*/

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

/**
* Construct an instance of the exception with a descriptive message.
* @param msg	A message describing the exception.
*/
  public ObjectNameNotFoundException(String msg)
  {
  	super(msg);
  }
/*
	private	String	n;

* Construct an instance of the exception.
* @param	name	The name passed to Database.lookup that is not associated with
* any object in the database.

	public ObjectNameNotFoundException(String name)
  {
		super();
    n = name;
  }


*	Access the name that is not bound to any object in the database.
* @return	The name that was passed to Database.lookup.

  public String getName()
  {
  	return n;
  }
*/
}

⌨️ 快捷键说明

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