?? usernamenotexistexception.java
字號:
/*
* JCatalog Project
*/
package catalog.model.exception;
/**
* Exception thrown when a user tries to use a non-existing username to log in.
*
* @author <a href="mailto:derek_shen@hotmail.com">Derek Y. Shen</a>
* @see CatalogException
*/
public class UsernameNotExistException extends CatalogException {
private String username;
/**
* Constructor with non-existing username.
*
* @param newUserName the non-existing username
*/
public UsernameNotExistException(String newUsername) {
super("Username " + newUsername + " does not exist");
this.username = newUsername;
}
public String getUsername() {
return this.username;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -