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

com.vaushell.superpipes.tools.scribe.linkedin.LinkedInException Maven / Gradle / Ivy

Go to download

SuperPipes rules flows between sources and destinations. It's like Yahoo Pipes, IFTTT, etc.

The newest version!
/*
 * Copyright (C) 2013 Fabien Vauchelles (fabien_AT_vauchelles_DOT_com).
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3, 29 June 2007, of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */

package com.vaushell.superpipes.tools.scribe.linkedin;

import com.vaushell.superpipes.tools.scribe.OAuthException;

/**
 * LinkedIn Exception.
 *
 * @author Fabien Vauchelles (fabien_AT_vauchelles_DOT_com)
 */
public final class LinkedInException
    extends OAuthException
{
    // PUBLIC
    public LinkedInException( final int httpCode ,
                              final int apiCode ,
                              final String message ,
                              final int status )
    {
        super( httpCode ,
               apiCode ,
               message );

        this.status = status;
    }

    public int getStatus()
    {
        return status;
    }

    @Override
    public String getMessage()
    {
        return super.getMessage() + ", status=" + getStatus();
    }

    @Override
    public String toString()
    {
        return "FacebookException{" + super.toString() + ", status=" + status + '}';
    }
    // PRIVATE
    private final int status;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy