001/*
002 * Shredzone Commons
003 *
004 * Copyright (C) 2012 Richard "Shred" Körber
005 *   http://commons.shredzone.org
006 *
007 * This program is free software: you can redistribute it and/or modify
008 * it under the terms of the GNU Library General Public License as
009 * published by the Free Software Foundation, either version 3 of the
010 * License, or (at your option) any later version.
011 *
012 * This program is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
015 * GNU General Public License for more details.
016 *
017 * You should have received a copy of the GNU Library General Public License
018 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
019 */
020
021package org.shredzone.commons.view.exception;
022
023import javax.annotation.ParametersAreNonnullByDefault;
024
025/**
026 * This exception is raised when a view could not be rendered for various reasons.
027 *
028 * @author Richard "Shred" Körber
029 */
030@ParametersAreNonnullByDefault
031public class ViewException extends Exception {
032    private static final long serialVersionUID = 2960506285496985876L;
033
034    /**
035     * Creates a new {@link ViewException}.
036     */
037    public ViewException() {
038        super();
039    }
040
041    /**
042     * Creates a new {@link ViewException}.
043     *
044     * @param msg
045     *            Message
046     */
047    public ViewException(String msg) {
048        super(msg);
049    }
050
051    /**
052     * Creates a new {@link ViewException}.
053     *
054     * @param cause
055     *            Exception that caused this exception
056     */
057    public ViewException(Throwable cause) {
058        super(cause);
059    }
060
061    /**
062     * Creates a new {@link ViewException}.
063     *
064     * @param msg
065     *            Message
066     * @param cause
067     *            Exception that caused this exception
068     */
069    public ViewException(String msg, Throwable cause) {
070        super(msg, cause);
071    }
072
073}