Commit | Line | Data |
---|---|---|
a52fde77 | 1 | /******************************************************************************* |
e13bd4cd | 2 | * Copyright (c) 2012, 2015 Ericsson |
a52fde77 AM |
3 | * Copyright (c) 2010, 2011 École Polytechnique de Montréal |
4 | * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com> | |
063f0d27 | 5 | * |
a52fde77 AM |
6 | * All rights reserved. This program and the accompanying materials are |
7 | * made available under the terms of the Eclipse Public License v1.0 which | |
8 | * accompanies this distribution, and is available at | |
9 | * http://www.eclipse.org/legal/epl-v10.html | |
063f0d27 | 10 | * |
e13bd4cd PT |
11 | * Contributors: |
12 | * Alexandre Montplaisir - Initial API and implementation | |
13 | * Patrick Tasse - Add message to exceptions | |
a52fde77 AM |
14 | *******************************************************************************/ |
15 | ||
e894a508 | 16 | package org.eclipse.tracecompass.statesystem.core.exceptions; |
a52fde77 AM |
17 | |
18 | /** | |
19 | * This exception gets thrown when the user tries to access an attribute which | |
20 | * doesn't exist in the system, of if the quark is simply invalid (ie, < 0). | |
063f0d27 AM |
21 | * |
22 | * @author Alexandre Montplaisir | |
a52fde77 AM |
23 | */ |
24 | public class AttributeNotFoundException extends Exception { | |
25 | ||
a52fde77 AM |
26 | private static final long serialVersionUID = 7964275803369706145L; |
27 | ||
063f0d27 AM |
28 | /** |
29 | * Default constructor | |
30 | */ | |
a6817576 AM |
31 | public AttributeNotFoundException() { |
32 | super(); | |
33 | } | |
34 | ||
063f0d27 AM |
35 | /** |
36 | * Constructor with a message | |
37 | * | |
38 | * @param message | |
39 | * Message to attach to this exception | |
40 | */ | |
a6817576 AM |
41 | public AttributeNotFoundException(String message) { |
42 | super(message); | |
43 | } | |
44 | ||
e13bd4cd PT |
45 | /** |
46 | * Constructor with both a message and a cause. | |
47 | * | |
48 | * @param message | |
49 | * Message to attach to this exception | |
50 | * @param e | |
51 | * Cause of this exception | |
52 | * @since 1.0 | |
53 | */ | |
54 | public AttributeNotFoundException(String message, Throwable e) { | |
55 | super(message, e); | |
56 | } | |
a52fde77 | 57 | } |