org.springframework.security.oauth2.common.exceptions.UnsupportedGrantTypeException.java Source code

Java tutorial

Introduction

Here is the source code for org.springframework.security.oauth2.common.exceptions.UnsupportedGrantTypeException.java

Source

package org.springframework.security.oauth2.common.exceptions;

/**
 * @author Ryan Heaton
 */
@SuppressWarnings("serial")
public class UnsupportedGrantTypeException extends OAuth2Exception {

    public UnsupportedGrantTypeException(String msg, Throwable t) {
        super(msg, t);
    }

    public UnsupportedGrantTypeException(String msg) {
        super(msg);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "unsupported_grant_type";
    }
}