Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14792 manas 1
/**
2
 * Copyright 2010-present Facebook
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *    http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
 
17
package com.facebook.android;
18
 
19
/**
20
 * Encapsulation of a Facebook Error: a Facebook request that could not be
21
 * fulfilled.
22
 * <p/>
23
 * THIS CLASS SHOULD BE CONSIDERED DEPRECATED.
24
 * <p/>
25
 * All public members of this class are intentionally deprecated.
26
 * New code should instead use
27
 * {@link com.facebook.FacebookException}
28
 * <p/>
29
 * Adding @Deprecated to this class causes warnings in other deprecated classes
30
 * that reference this one.  That is the only reason this entire class is not
31
 * deprecated.
32
 *
33
 * @devDocDeprecated
34
 */
35
public class FacebookError extends RuntimeException {
36
 
37
    private static final long serialVersionUID = 1L;
38
 
39
    private int mErrorCode = 0;
40
    private String mErrorType;
41
 
42
    @Deprecated
43
    public FacebookError(String message) {
44
        super(message);
45
    }
46
 
47
    @Deprecated
48
    public FacebookError(String message, String type, int code) {
49
        super(message);
50
        mErrorType = type;
51
        mErrorCode = code;
52
    }
53
 
54
    @Deprecated
55
    public int getErrorCode() {
56
        return mErrorCode;
57
    }
58
 
59
    @Deprecated
60
    public String getErrorType() {
61
        return mErrorType;
62
    }
63
 
64
}