All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scribe.exceptions.OAuthParametersMissingException Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
package org.scribe.exceptions;

import org.scribe.model.*;

/**
 * Specialized exception that represents a missing OAuth parameter. 
 * 
 * @author Pablo Fernandez
 */
public class OAuthParametersMissingException extends OAuthException
{

  private static final long serialVersionUID = 1745308760111976671L;
  private static final String MSG = "Could not find oauth parameters in request: %s. "
      + "OAuth parameters must be specified with the addOAuthParameter() method";

  /**
   * Default constructor.
   * 
   * @param request OAuthRequest that caused the error
   */
  public OAuthParametersMissingException(OAuthRequest request)
  {
    super(String.format(MSG, request));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy