1/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2 *
3 * This program and the accompanying materials are made available under
4 * the terms of the Common Public License v1.0 which accompanies this distribution,
5 * and is available at http://www.eclipse.org/legal/cpl-v10.html
6 *
7 * $Id: EMMAException.java,v 1.1.1.1 2004/05/09 16:57:29 vlad_r Exp $
8 */
9package com.vladium.emma;
10
11import com.vladium.util.exception.AbstractException;
12
13// ----------------------------------------------------------------------------
14/**
15 * @author Vlad Roubtsov, (C) 2003
16 */
17public
18class EMMAException extends AbstractException
19{
20    // public: ................................................................
21
22    /**
23     * Constructs an exception with null message and null cause.
24     */
25    public EMMAException ()
26    {
27    }
28
29    /**
30     * Constructs an exception with given error message/code and null cause.
31     *
32     * @param message the detail message [can be null]
33     */
34    public EMMAException (final String message)
35    {
36        super (message);
37    }
38
39    /**
40     * Constructs an exception with given error message/code and null cause.
41     *
42     * @param message the detail message [can be null]
43     * @param arguments message format parameters [can be null or empty]
44     *
45     * @see java.text.MessageFormat
46     */
47    public EMMAException (final String message, final Object [] arguments)
48    {
49        super (message, arguments);
50    }
51
52    /**
53     * Constructs an exception with null error message/code and given cause.
54     *
55     * @param cause the cause [nested exception] [can be null]
56     */
57    public EMMAException (final Throwable cause)
58    {
59        super (cause);
60    }
61
62    /**
63     * Constructs an exception with given error message/code and given cause.
64     *
65     * @param message the detail message [can be null]
66     * @param cause the cause [nested exception] [can be null]
67     */
68    public EMMAException (final String message, final Throwable cause)
69    {
70        super (message, cause);
71    }
72
73    /**
74     * Constructs an exception with given error message/code and given cause.
75     *
76     * @param message the detail message [can be null]
77     * @param arguments message format parameters [can be null or empty]
78     * @param cause the cause [nested exception] [can be null]
79     *
80     * @see java.text.MessageFormat
81     */
82    public EMMAException (final String message, final Object [] arguments, final Throwable cause)
83    {
84        super (message, arguments, cause);
85    }
86
87    // protected: .............................................................
88
89    // package: ...............................................................
90
91    // private: ...............................................................
92
93} // end of class
94// ----------------------------------------------------------------------------
95