Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core / src / org / eclipse / linuxtools / lttng / core / state / LttngStateException.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 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.lttng.core.state;
14
15 /**
16 *
17 * @author alvaro
18 *
19 */
20 public class LttngStateException extends Exception {
21 /**
22 *
23 */
24 private static final long serialVersionUID = 7122881233964952441L;
25
26 /**
27 * Constructs an {@code LttngStateException} with {@code null} as its error detail
28 * message.
29 */
30 public LttngStateException() {
31 super();
32 }
33
34 /**
35 * Constructs an {@code LttngStateException} with the specified detail message.
36 *
37 * @param message
38 * The detail message (which is saved for later retrieval by the
39 * {@link #getMessage()} method)
40 */
41 public LttngStateException(String message) {
42 super(message);
43 }
44
45 /**
46 * Constructs an {@code LttngStateException} with the specified detail message and
47 * cause.
48 *
49 * <p>
50 * Note that the detail message associated with {@code cause} is <i>not</i>
51 * automatically incorporated into this exception's detail message.
52 *
53 * @param message
54 * The detail message (which is saved for later retrieval by the
55 * {@link #getMessage()} method)
56 *
57 * @param cause
58 * The cause (which is saved for later retrieval by the
59 * {@link #getCause()} method). (A null value is permitted, and
60 * indicates that the cause is nonexistent or unknown.)
61 *
62 * @since 1.6
63 */
64 public LttngStateException(String message, Throwable cause) {
65 super(message, cause);
66 }
67
68 /**
69 * Constructs an {@code LttngStateException} with the specified cause and a detail
70 * message of {@code (cause==null ? null : cause.toString())} (which
71 * typically contains the class and detail message of {@code cause}). This
72 * constructor is useful for exceptions that are little more than
73 * wrappers for other throwables.
74 *
75 * @param cause
76 * The cause (which is saved for later retrieval by the
77 * {@link #getCause()} method). (A null value is permitted, and
78 * indicates that the cause is nonexistent or unknown.)
79 *
80 * @since 1.6
81 */
82 public LttngStateException(Throwable cause) {
83 super(cause);
84 }
85 }
This page took 0.032424 seconds and 5 git commands to generate.