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