All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.untzuntz.ustackserverapi.exceptions.UserAuthenticationException Maven / Gradle / Ivy

There is a newer version: 2.1.115
Show newest version
package com.untzuntz.ustackserverapi.exceptions;

import com.untzuntz.ustackserverapi.APIException;
import com.untzuntz.ustackserverapi.APIExceptionDocumentation;

/**
 * Indicates the user has failed authentication
 * 
 * @author jdanner
 *
 */
public class UserAuthenticationException extends APIException implements APIExceptionDocumentation {
	
	private static final long serialVersionUID = 1L;
	private String message;
	private String failReason;
	
	public UserAuthenticationException(String message, String failReason)
	{
		super(message);
		this.message = message;
		this.failReason = failReason;
	}

	public String getFailReason() {
		return failReason;
	}

	public String getMessage() {
		return message;
	}

	public String getReason() {
		return "The user could not be authenticated. See the 'reason' field for more information.";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy