View Javadoc
1   package org.springframework.security.oauth2.common.exceptions;
2   
3   /**
4    * @author Ryan Heaton
5    * @author Dave Syer
6    */
7   @SuppressWarnings("serial")
8   public class InvalidGrantException extends ClientAuthenticationException {
9   
10  	public InvalidGrantException(String msg, Throwable t) {
11  		super(msg, t);
12  	}
13  
14  	public InvalidGrantException(String msg) {
15  		super(msg);
16  	}
17  
18  	@Override
19  	public String getOAuth2ErrorCode() {
20  		return "invalid_grant";
21  	}
22  }