- package com.seecoder.BlueWhale.Exception;
- public class BlueWhaleException extends RuntimeException{
- public BlueWhaleException(String message){
- super(message);
- }
- public static BlueWhaleException phoneAlreadyExists(){
- return new BlueWhaleException("手机号已经存在!");
- }
- public static BlueWhaleException notLogin(){
- return new BlueWhaleException("未登录");
- }
- }
|