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 Dialog Error.
21
 * <p/>
22
 * THIS CLASS SHOULD BE CONSIDERED DEPRECATED.
23
 * <p/>
24
 * All public members of this class are intentionally deprecated.
25
 * New code should instead use
26
 * {@link com.facebook.FacebookException}
27
 * <p/>
28
 * Adding @Deprecated to this class causes warnings in other deprecated classes
29
 * that reference this one.  That is the only reason this entire class is not
30
 * deprecated.
31
 *
32
 * @devDocDeprecated
33
 */
34
public class DialogError extends Throwable {
35
 
36
    private static final long serialVersionUID = 1L;
37
 
38
    /**
39
     * The ErrorCode received by the WebView: see
40
     * http://developer.android.com/reference/android/webkit/WebViewClient.html
41
     */
42
    private int mErrorCode;
43
 
44
    /** The URL that the dialog was trying to load */
45
    private String mFailingUrl;
46
 
47
    @Deprecated
48
    public DialogError(String message, int errorCode, String failingUrl) {
49
        super(message);
50
        mErrorCode = errorCode;
51
        mFailingUrl = failingUrl;
52
    }
53
 
54
    @Deprecated
55
    public int getErrorCode() {
56
        return mErrorCode;
57
    }
58
 
59
    @Deprecated
60
    public String getFailingUrl() {
61
        return mFailingUrl;
62
    }
63
 
64
}