package thb.jeanluc.adventure.loader;

/**
 * Thrown when world loading fails: missing YAML files, malformed data,
 * dangling references, or invariant violations.
 */
public class WorldLoadException extends RuntimeException {

    /**
     * Creates an exception with a descriptive message.
     *
     * @param message human-readable explanation
     */
    public WorldLoadException(String message) {
        super(message);
    }

    /**
     * Creates an exception wrapping a lower-level cause.
     *
     * @param message human-readable explanation
     * @param cause   underlying cause
     */
    public WorldLoadException(String message, Throwable cause) {
        super(message, cause);
    }
}
