summaryrefslogtreecommitdiff
path: root/src/com/p4square/restlet/oauth/OAuthException.java
blob: dd326d3a4e34cb804d59d3e17a46f982cdb23a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright 2013 Jesse Morgan
 */

package com.p4square.restlet.oauth;

import org.restlet.data.Status;

/**
 * Exception throw when the service provider returns an error.
 *
 * @author Jesse Morgan <jesse@jesterpm.net>
 */
public class OAuthException extends Exception {
    private final Status mStatus;

    public OAuthException(Status status) {
        super("Service provider failed request: " + status.getDescription());
        mStatus = status;
    }

    public Status getStatus() {
        return mStatus;
    }
}