Tabnine Logo
UserExistException
Code IndexAdd Tabnine to your IDE (free)

How to use
UserExistException
in
cn.zhangxd.platform.system.api.exception

Best Java code snippets using cn.zhangxd.platform.system.api.exception.UserExistException (Showing top 2 results out of 315)

origin: zhangxd1989/springboot-dubbox

/**
 * Handle user exist exception map.
 *
 * @param ex the ex
 * @return the map
 */
@ExceptionHandler(UserExistException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public Map<String, Object> handleUserExistException(UserExistException ex) {
  return makeErrorMessage(ReturnCode.USER_EXIST, "User Exist", ex.getMessage());
}
origin: zhangxd1989/springboot-dubbox

@Override
public void sendCaptcha4Registry(String mobile) throws BusinessException {
  TripUser user = tripUserService.getByMobile(mobile);
  // 注册,如果用户存在
  if (user != null) {
    throw new UserExistException(String.format("手机号 '%s' 已经注册,直接登录", mobile));
  }
  sendCaptcha(mobile);
}
cn.zhangxd.platform.system.api.exceptionUserExistException

Javadoc

用户已存在

Most used methods

  • <init>
  • getMessage

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JPanel (javax.swing)
  • Option (scala)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now