BlueWhaleException.java 421 B

123456789101112131415
  1. package com.seecoder.BlueWhale.Exception;
  2. public class BlueWhaleException extends RuntimeException{
  3. public BlueWhaleException(String message){
  4. super(message);
  5. }
  6. public static BlueWhaleException phoneAlreadyExists(){
  7. return new BlueWhaleException("手机号已经存在!");
  8. }
  9. public static BlueWhaleException notLogin(){
  10. return new BlueWhaleException("未登录");
  11. }
  12. }