001/*
002 * JDrupes Builder
003 * Copyright (C) 2025 Michael N. Lipp
004 * 
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU Affero General Public License as
007 * published by the Free Software Foundation, either version 3 of the
008 * License, or (at your option) any later version.
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 Affero General Public License for more details.
014 *
015 * You should have received a copy of the GNU Affero General Public License
016 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
017 */
018
019package org.jdrupes.builder.api;
020
021/// Represents an exception that occurs during the build. Terminates the
022/// current build when thrown.
023///
024@SuppressWarnings("serial")
025public class BuildException extends RuntimeException {
026
027    /// Instantiates a new build exception.
028    ///
029    /// @param message the message
030    /// @param cause the cause
031    /// @param enableSuppression the enable suppression
032    /// @param writableStackTrace the writable stack trace
033    ///
034    public BuildException(String message, Throwable cause,
035            boolean enableSuppression, boolean writableStackTrace) {
036        super(message, cause, enableSuppression, writableStackTrace);
037    }
038
039    /// Instantiates a new build exception.
040    ///
041    /// @param message the message
042    /// @param cause the cause
043    ///
044    public BuildException(String message, Throwable cause) {
045        super(message, cause);
046    }
047
048    /// Instantiates a new build exception.
049    ///
050    /// @param message the message
051    ///
052    public BuildException(String message) {
053        super(message);
054    }
055
056    /// Instantiates a new build exception.
057    ///
058    /// @param cause the cause
059    ///
060    public BuildException(Throwable cause) {
061        super(cause);
062    }
063
064}