1bde48381049f690331e6995b25b667aa7702108
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng / src / org / eclipse / linuxtools / lttng / jni / JniException.java
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.lttng.jni;
14
15 /**
16 * <b><u>JniException</u></b>
17 * <p>
18 * Super class for JNI exception.
19 */
20 public class JniException extends Exception {
21 private static final long serialVersionUID = -6620784221853154537L;
22
23 JniException(String errMsg) {
24 super(errMsg);
25 }
26 }
27
28 /**
29 * <b><u>JniTraceException</u></b>
30 * <p>
31 * Basic exception class for the JniTrace class
32 */
33 class JniTraceException extends JniException {
34 private static final long serialVersionUID = -6873007333085268143L;
35
36 JniTraceException(String errMsg) {
37 super(errMsg);
38 }
39 }
40
41 /**
42 * <b><u>JniOpenTraceFailedException</u></b>
43 * <p>
44 * Sub-exception class type for JniTraceException
45 * This type will get thrown when a trace fail to open
46 * Most likely to be caused by a bad tracepath
47 */
48 class JniOpenTraceFailedException extends JniTraceException {
49 private static final long serialVersionUID = 877769692366394895L;
50
51 JniOpenTraceFailedException(String errMsg) {
52 super(errMsg);
53 }
54 }
55
56 /**
57 * <b><u>JniNoNextEventInTraceException</u></b>
58 * <p>
59 * Sub-exception class type for JniTraceException
60 * This type will get thrown when we can't find any "next" event
61 * This should usually mean there is no more event in the trace
62
63 */
64 class JniNoNextEventInTraceException extends JniTraceException {
65 private static final long serialVersionUID = -2887528566100063849L;
66
67 JniNoNextEventInTraceException(String errMsg) {
68 super(errMsg);
69 }
70 }
71
72 //
73 /**
74 * <b><u>JniTracefileException</u></b>
75 * <p>
76 * Basic exception class for the JniTracefile class
77 */
78 class JniTracefileException extends JniException {
79 private static final long serialVersionUID = 5081317864491800084L;
80
81 JniTracefileException(String errMsg) {
82 super(errMsg);
83 }
84 }
85
86 /**
87 * <b><u>JniTracefileWithoutEventException</u></b>
88 * <p>
89 * Sub-exception class type for JniTracefileException
90 * This type will get thrown when a trace file contain no readable events
91 * The proper course of action would usually be to ignore this useless trace file
92 */
93 class JniTracefileWithoutEventException extends JniTracefileException {
94 private static final long serialVersionUID = -8183967479236071261L;
95
96 JniTracefileWithoutEventException(String errMsg) {
97 super(errMsg);
98 }
99 }
100
101 /**
102 * <b><u>JniEventException</u></b>
103 * <p>
104 * Basic exception class for the JniEvent class
105 */
106 class JniEventException extends JniException {
107 private static final long serialVersionUID = -5891749130387304519L;
108
109 JniEventException(String errMsg) {
110 super(errMsg);
111 }
112 }
113
114 /**
115 * <b><u>JniNoSuchEventException</u></b>
116 * <p>
117 * Sub-exception type for the JniEventException type
118 * This exception type will get thrown when an event is unavailable
119 * This might happen at construction because some events type are not present in
120 * the trace
121 */
122 class JniNoSuchEventException extends JniEventException {
123 private static final long serialVersionUID = -4379712949891538051L;
124
125 JniNoSuchEventException(String errMsg) {
126 super(errMsg);
127 }
128 }
129
130 /**
131 * <b><u>JniEventOutOfRangeException</u></b>
132 * <p>
133 * Sub-exception type for the JniEventException type
134 * This exception type will get thrown when there is no more event of this type
135 * available
136 */
137 class JniEventOutOfRangeException extends JniEventException {
138 private static final long serialVersionUID = -4645877232795324541L;
139
140 JniEventOutOfRangeException(String errMsg) {
141 super(errMsg);
142 }
143 }
144
145 /**
146 * <b><u>JniMarkerException</u></b>
147 * <p>
148 * Basic Exception class for the JniMarker class
149 */
150 class JniMarkerException extends JniException {
151 private static final long serialVersionUID = -4694173610721983794L;
152
153 JniMarkerException(String errMsg) {
154 super(errMsg);
155 }
156 }
157
158 /**
159 * <b><u>JniMarkerFieldException</u></b>
160 * <p>
161 * Basic Exception class for the JniMarkerField class
162 */
163 class JniMarkerFieldException extends JniException {
164 private static final long serialVersionUID = 6066381741374806879L;
165
166 JniMarkerFieldException(String errMsg) {
167 super(errMsg);
168 }
169 }
This page took 0.034244 seconds and 4 git commands to generate.