Package com.io7m.quarrel.core
Class QErrorFormatting
java.lang.Object
com.io7m.quarrel.core.QErrorFormatting
Standard functions to format errors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
format
(QLocalizationType localization, com.io7m.seltzer.api.SStructuredErrorType<?> error, Consumer<String> consumer) Format the given error, passing the formatted message to the given consumer.
-
Method Details
-
format
public static void format(QLocalizationType localization, com.io7m.seltzer.api.SStructuredErrorType<?> error, Consumer<String> consumer) Format the given error, passing the formatted message to the given consumer.- Parameters:
localization
- The localizererror
- The errorconsumer
- The consumer
-