Package space.arim.dazzleconf
Class StandardErrorPrint
java.lang.Object
space.arim.dazzleconf.StandardErrorPrint
- All Implemented Interfaces:
ErrorPrint
Usable implementation of
ErrorPrint that formats the error message in a language-independent fashion.
Note this implementation requires at least one error context passed in the list onError(List).
If the list is empty, an IllegalArgumentException will be thrown.
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.arim.dazzleconf.ErrorPrint
ErrorPrint.Output -
Constructor Summary
ConstructorsConstructorDescriptionStandardErrorPrint(@NonNull ErrorPrint.Output output) Creates from the given output -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(@NonNull List<@NonNull ErrorContext> errorContexts) Displays the following error contexts in some way, shape, or form
-
Constructor Details
-
StandardErrorPrint
Creates from the given output- Parameters:
output- where to send messages
-
-
Method Details
-
onError
Description copied from interface:ErrorPrintDisplays the following error contexts in some way, shape, or form- Specified by:
onErrorin interfaceErrorPrint- Parameters:
errorContexts- the error contexts
-