1
|
/**
|
2
|
* Copyright (C) 2021 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.api.service.security;
|
10
|
|
11
|
import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
12
|
|
13
|
/**
|
14
|
* To be thrown an email address is already bound to an account an can nor be
|
15
|
* used to create a new user account.
|
16
|
*
|
17
|
* @author a.kohlbecker
|
18
|
* @since Nov 4, 2021
|
19
|
*/
|
20
|
public class EmailAddressAlreadyInUseException extends UsernameNotFoundException {
|
21
|
|
22
|
private static final long serialVersionUID = 1572067792460999503L;
|
23
|
|
24
|
public EmailAddressAlreadyInUseException(String msg) {
|
25
|
super(msg);
|
26
|
}
|
27
|
}
|