001package co.codewizards.cloudstore.core.updater;
002
003
004/**
005 * @author marco
006 * @author Marc Klinger - marc[at]nightlabs[dot]de
007 */
008public class MalformedVersionException extends RuntimeException
009{
010        private static final long serialVersionUID = 1L;
011
012        /**
013         * Constructs a new exception with <code>null</code> as its detail message.
014         * The cause is not initialized, and may subsequently be initialized by a
015         * call to {@link #initCause}.
016         */
017        public MalformedVersionException() {
018                super();
019        }
020        /**
021         * Constructs a new exception with the specified detail message.  The
022         * cause is not initialized, and may subsequently be initialized by
023         * a call to {@link #initCause}.
024         * @param   message the detail message. The detail message is saved for
025         *          later retrieval by the {@link #getMessage()} method.
026         */
027        public MalformedVersionException(String message) {
028                super(message);
029        }
030        /**
031         * Constructs a new exception with the specified cause and a detail
032         * message of <tt>(cause==null ? null : cause.toString())</tt> (which
033         * typically contains the class and detail message of <tt>cause</tt>).
034         * This constructor is useful for exceptions that are little more than
035         * wrappers for other throwables (for example, {@link
036         * java.security.PrivilegedActionException}).
037         * @param  cause the cause (which is saved for later retrieval by the
038         *         {@link #getCause()} method).  (A <tt>null</tt> value is
039         *         permitted, and indicates that the cause is nonexistent or
040         *         unknown.)
041         */
042        public MalformedVersionException(Throwable cause) {
043                super(cause);
044        }
045        /**
046         * Constructs a new exception with the specified detail message and
047         * cause.  <p>Note that the detail message associated with
048         * <code>cause</code> is <i>not</i> automatically incorporated in
049         * this exception's detail message.
050         * @param  message the detail message (which is saved for later retrieval
051         *         by the {@link #getMessage()} method).
052         * @param  cause the cause (which is saved for later retrieval by the
053         *         {@link #getCause()} method).  (A <tt>null</tt> value is
054         *         permitted, and indicates that the cause is nonexistent or
055         *         unknown.)
056         */
057        public MalformedVersionException(String message, Throwable cause) {
058                super(message, cause);
059        }
060}