001package org.clafer.frontend;
002
003
004/**
005 * An error in the source, with where it is.
006 *
007 * @param span where the error is
008 * @param message what is wrong
009 */
010public record Diagnostic(SourceSpan span, String message) {
011
012    @Override
013    public String toString() {
014        return span.format(message);
015    }
016}