⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userexception.java

📁 Java编写个人日程管理工具, 具有添加编辑日程和自动适应功能, 程序包含完整的Document和测试运行环境
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package exception;import java.io.*;/** * 这个方法处理用户异常 * @author zouhao */public class UserException extends Exception{    public UserException(String e)    {        if(e.equals("not exists"))        {            System.out.println("The user you inputed is not exists!");        }        if(e.equals("is exists"))        {            System.out.println("The user you inputed is already exists!");        }        if(e.equals("wrong password"))        {            System.out.println("The user and pssword you inputed are not conform!");        }        if(e.equals("short password"))        {            System.out.println("The pssword you inputed is too short!");        }    }}

⌨️ 快捷键说明

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