Java tutorial
/* * Copyright(C) 2014 * NEC Corporation All rights reserved. * * No permission to use, copy, modify and distribute this software * and its documentation for any purpose is granted. * This software is provided under applicable license agreement only. */ package com.nec.harvest.exception; import org.springframework.security.core.AuthenticationException; /** * * @author <a href="mailto:sondn@nec.vn">Ngoc Son Dang</a> * @version AuthenticationException.java * @since 2014/06/17 * */ public class HarvestAuthenticationException extends AuthenticationException { private static final long serialVersionUID = -1780085537310999095L; /** * Constructs a new exception with the specified detail message. The cause * is not initialized, and may subsequently be initialized by a call to * {@link #initCause}. * * @param message * The detail message which is saved for later retrieval by the * {@link #getMessage()} method. */ public HarvestAuthenticationException(final String message) { super(message); } /** * Constructs a new exception with the specified detail message and cause. * <p> * Note that the detail message associated with <code>cause</code> is not * automatically incorporated into this exception's detail message. * * @param message * The detail message which is saved for later retrieval by the * {@link #getMessage()} method. * @param cause * The cause which is saved for later retrieval by the * {@link #getCause()} method. A {@code null} value is permitted, * and indicates that the cause is nonexistent or unknown. * @since 1.4 */ public HarvestAuthenticationException(final String message, final Throwable cause) { super(message, cause); } }