View Javadoc
1   package org.springframework.security.oauth2.common.exceptions;
2   
3   /**
4    * Base exception
5    * 
6    * @author Ryan Heaton
7    * @author Dave Syer
8    */
9   @SuppressWarnings("serial")
10  public abstract class ClientAuthenticationException extends OAuth2Exception {
11  
12  	public ClientAuthenticationException(String msg, Throwable t) {
13  		super(msg, t);
14  	}
15  
16  	public ClientAuthenticationException(String msg) {
17  		super(msg);
18  	}
19  
20  	@Override
21  	public int getHttpErrorCode() {
22  		// The spec says this is a bad request (not unauthorized)
23  		return 400;
24  	}
25  
26  	@Override
27  	public abstract String getOAuth2ErrorCode();
28  }