View Javadoc
1   package net.avcompris.commons3.api.exception;
2   
3   import javax.annotation.Nullable;
4   
5   public final class EmailAddressAlreadyExistsException extends ServiceException {
6   
7   	private static final long serialVersionUID = 7660769768476033516L;
8   
9   	public EmailAddressAlreadyExistsException(@Nullable final String emailAddress) {
10  
11  		super(409, "Email already exists in the database: " + emailAddress);
12  	}
13  
14  	public EmailAddressAlreadyExistsException(@Nullable final String emailAddress, @Nullable final Throwable cause) {
15  
16  		super(409, "Email already exists in the database: " + emailAddress, cause);
17  	}
18  }