/*
* This file is part of the Intuitive DSL project.
* Copyright (c) 2026 DBA Labs - Switzerland. All rights reserved.
*
* This program is dual-licensed under a commercial license and the AGPLv3.
* For commercial licensing, contact us at [email protected] or visit https://www.dbalabs.ch.
*
* AGPLv3 licensing:
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 (19 November 2007).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
*/
package ch.dbalabs.intuitivedsl.exception;
/**
* Exception thrown during the initialization phase (startup) if the Intuitive DSL engine
* encounters an invalid configuration.
*
* <p>Common causes include:</p>
* <ul>
* <li>Malformed iBNF syntax in a {@code @DslCommand} annotation.</li>
* <li>A missing or unregistered macro referenced in the grammar.</li>
* <li>A {@code @Bind} annotation targeting a parameter that does not exist in the syntax.</li>
* </ul>
*
* @author DBA Labs
*/
public class DslDefinitionException extends RuntimeException {
/**
* Constructs a new DslDefinitionException with the specified detail message.
*
* @param message the detail message
*/
public DslDefinitionException(String message) {
super(message);
}
/**
* Constructs a new DslDefinitionException with the specified detail message and cause.
*
* @param message the detail message
* @param cause the root cause
*/
public DslDefinitionException(String message, Throwable cause) {
super(message, cause);
}
}