1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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
10 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.jni
;
16 * <b><u>JniException</u></b>
18 * Super class for JNI exception.
20 public class JniException
extends Exception
{
21 private static final long serialVersionUID
= -6620784221853154537L;
23 JniException(String errMsg
) {
29 * <b><u>JniTraceException</u></b>
31 * Basic exception class for the JniTrace class
33 class JniTraceException
extends JniException
{
34 private static final long serialVersionUID
= -6873007333085268143L;
36 JniTraceException(String errMsg
) {
42 * <b><u>JniOpenTraceFailedException</u></b>
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
48 class JniOpenTraceFailedException
extends JniTraceException
{
49 private static final long serialVersionUID
= 877769692366394895L;
51 JniOpenTraceFailedException(String errMsg
) {
57 * <b><u>JniNoNextEventInTraceException</u></b>
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
64 class JniNoNextEventInTraceException
extends JniTraceException
{
65 private static final long serialVersionUID
= -2887528566100063849L;
67 JniNoNextEventInTraceException(String errMsg
) {
74 * <b><u>JniTracefileException</u></b>
76 * Basic exception class for the JniTracefile class
78 class JniTracefileException
extends JniException
{
79 private static final long serialVersionUID
= 5081317864491800084L;
81 JniTracefileException(String errMsg
) {
87 * <b><u>JniTracefileWithoutEventException</u></b>
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
93 class JniTracefileWithoutEventException
extends JniTracefileException
{
94 private static final long serialVersionUID
= -8183967479236071261L;
96 JniTracefileWithoutEventException(String errMsg
) {
102 * <b><u>JniEventException</u></b>
104 * Basic exception class for the JniEvent class
106 class JniEventException
extends JniException
{
107 private static final long serialVersionUID
= -5891749130387304519L;
109 JniEventException(String errMsg
) {
115 * <b><u>JniNoSuchEventException</u></b>
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
122 class JniNoSuchEventException
extends JniEventException
{
123 private static final long serialVersionUID
= -4379712949891538051L;
125 JniNoSuchEventException(String errMsg
) {
131 * <b><u>JniEventOutOfRangeException</u></b>
133 * Sub-exception type for the JniEventException type
134 * This exception type will get thrown when there is no more event of this type
137 class JniEventOutOfRangeException
extends JniEventException
{
138 private static final long serialVersionUID
= -4645877232795324541L;
140 JniEventOutOfRangeException(String errMsg
) {
146 * <b><u>JniMarkerException</u></b>
148 * Basic Exception class for the JniMarker class
150 class JniMarkerException
extends JniException
{
151 private static final long serialVersionUID
= -4694173610721983794L;
153 JniMarkerException(String errMsg
) {
159 * <b><u>JniMarkerFieldException</u></b>
161 * Basic Exception class for the JniMarkerField class
163 class JniMarkerFieldException
extends JniException
{
164 private static final long serialVersionUID
= 6066381741374806879L;
166 JniMarkerFieldException(String errMsg
) {