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