?? datastoreexception.java
字號:
package com.free.struts.storefront.framework.exceptions;
/**
* <p>Title: Eclipse Plugin Development</p>
* <p>Description: Free download</p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: Free</p>
* @author gan.shu.man
* @version 1.0
*/
public class DatastoreException extends BaseException {
/**
* Return a DatastoreException for datastoreError condition.
*
* @return The new DatastoreException object.
*/
public static DatastoreException retrieveConstraint() {
Object[] args = {};
DatastoreException datastoreException = new DatastoreException(RETRIEVE_CONSTRAINT, args);
return (datastoreException);
}
public static DatastoreException objectNotFound() {
Object[] args = {};
DatastoreException datastoreException = new DatastoreException(OBJECTNOTFOUND_ERROR, args);
return (datastoreException);
}
public static DatastoreException datastoreError( Throwable rootCause) {
Object[] args = {};
DatastoreException datastoreException = new DatastoreException(DATASTORE_ERROR, args);
datastoreException.setRootCause( rootCause );
return (datastoreException);
}
/**
* For use by subclasses of DatastoreException.
*/
protected DatastoreException(String newErrorCode,
Object[] args) {
super(newErrorCode, args);
}
public static final String RETRIEVE_CONSTRAINT = "RetrieveConstraint";
public static final String DATASTORE_ERROR = "DatastoreError";
public static final String OBJECTNOTFOUND_ERROR = "ObjectNotFound";
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -