1 | /* |
2 | * Copyright (c) 2009 The JOMC Project |
3 | * Copyright (c) 2005 Christian Schulte <cs@jomc.org> |
4 | * All rights reserved. |
5 | * |
6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions |
8 | * are met: |
9 | * |
10 | * o Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. |
12 | * |
13 | * o Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in |
15 | * the documentation and/or other materials provided with the |
16 | * distribution. |
17 | * |
18 | * THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS" |
19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
20 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
21 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR |
22 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
23 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
24 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
25 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
26 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
27 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
28 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | * |
30 | * $Id: ModelException.java 1237 2010-01-09 20:22:54Z schulte2005 $ |
31 | * |
32 | */ |
33 | package org.jomc.model; |
34 | |
35 | /** |
36 | * Object management and configuration model exception. |
37 | * |
38 | * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> |
39 | * @version $Id: ModelException.java 1237 2010-01-09 20:22:54Z schulte2005 $ |
40 | */ |
41 | public class ModelException extends Exception |
42 | { |
43 | |
44 | /** Serial version UID for backwards compatibility with 1.0.x object streams. */ |
45 | private static final long serialVersionUID = -811692637198244449L; |
46 | |
47 | /** Creates a new {@code ModelException} instance. */ |
48 | public ModelException() |
49 | { |
50 | super(); |
51 | } |
52 | |
53 | /** |
54 | * Creates a new {@code ModelException} instance taking a message. |
55 | * |
56 | * @param message The message of the exception. |
57 | */ |
58 | public ModelException( final String message ) |
59 | { |
60 | super( message ); |
61 | } |
62 | |
63 | /** |
64 | * Creates a new {@code ModelException} instance taking a cause. |
65 | * |
66 | * @param cause The cause of the exception. |
67 | */ |
68 | public ModelException( final Throwable cause ) |
69 | { |
70 | super( cause ); |
71 | } |
72 | |
73 | /** |
74 | * Creates a new {@code ModelException} instance taking a message and a cause. |
75 | * |
76 | * @param message The message of the exception. |
77 | * @param cause The cause of the exception. |
78 | */ |
79 | public ModelException( final String message, final Throwable cause ) |
80 | { |
81 | super( message, cause ); |
82 | } |
83 | |
84 | } |