001/*
002 * Hypo, an extensible and pluggable Java bytecode analytical model.
003 *
004 * Copyright (C) 2021  Kyle Wood (DemonWav)
005 *
006 * This program is free software: you can redistribute it and/or modify
007 * it under the terms of the Lesser GNU General Public License as published by
008 * the Free Software Foundation, version 3 of the License only.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
013 * GNU Lesser General Public License for more details.
014 *
015 * You should have received a copy of the GNU Lesser General Public License
016 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
017 */
018
019package com.demonwav.hypo.core;
020
021/**
022 * Generic checked exception for Hypo execution errors.
023 */
024public class HypoException extends Exception {
025
026    /**
027     * Constructor for {@link HypoException} with a message.
028     *
029     * @param message The message for this exception.
030     */
031    public HypoException(String message) {
032        super(message);
033    }
034
035    /**
036     * Constructor for {@link HypoException} with a message and a cause.
037     *
038     * @param message The message for this exception.
039     * @param cause The cause of this exception.
040     */
041    public HypoException(String message, Throwable cause) {
042        super(message, cause);
043    }
044}