trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/api/TraceConnectivityException.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.traceviewer.api; |
|
19 |
|
20 import com.nokia.traceviewer.api.TraceViewerAPI.TVAPIError; |
|
21 import com.nokia.traceviewer.internal.api.TraceViewerAPI2Impl; |
|
22 |
|
23 /** |
|
24 * Exception that is thrown when <code>TraceViewerAPI2</code> connectivity |
|
25 * operations fail. |
|
26 * |
|
27 * @see TraceViewerAPI2Impl |
|
28 */ |
|
29 public class TraceConnectivityException extends Exception { |
|
30 |
|
31 /** |
|
32 * Serial version UID. |
|
33 */ |
|
34 private static final long serialVersionUID = 6945640644336014817L; |
|
35 /** |
|
36 * Trace viewer error due to which connect failed. |
|
37 */ |
|
38 private final TVAPIError error; |
|
39 |
|
40 /** |
|
41 * Constructor |
|
42 * |
|
43 * @param error |
|
44 * trace viewer error due to which connect failed |
|
45 */ |
|
46 public TraceConnectivityException(TVAPIError error) { |
|
47 this.error = error; |
|
48 } |
|
49 |
|
50 /** |
|
51 * Gets trace viewer error due to which connect failed. |
|
52 * |
|
53 * @return trace viewer error due to which connect failed |
|
54 */ |
|
55 public TVAPIError getError() { |
|
56 return error; |
|
57 } |
|
58 |
|
59 } |