Skip to content

Package io.github.qishr.cascara.common.diagnostic

Interface DiagnosticLocalizer

java.lang.Object
        io.github.qishr.cascara.common.diagnostic.DiagnosticLocalizer

All Known Implementing Classes:
    ObservableLocalizer


public interface DiagnosticLocalizer

Field Summary

Modifier and Type Field Description
public static final DiagnosticLocalizer DEFAULT A default fail-safe implementation that falls back to standard MessageFormat
public static final String FORMATTING_ERROR

Method Summary

Modifier and Type Method Description
public abstract String format(DiagnosticCode code, Object[] details) Formats the code with dynamic arguments using the environment's current language bundle.

Field Details

DEFAULT

public static final DiagnosticLocalizer DEFAULT

A default fail-safe implementation that falls back to standard MessageFormat


FORMATTING_ERROR

public static final String FORMATTING_ERROR

See Also:

Constant Field Values


Method Details

format

public abstract String format(DiagnosticCode code, Object[] details)

Formats the code with dynamic arguments using the environment's current language bundle.