Class SimpleSolutionErrorModelFactory
java.lang.Object
dev.zemco.codegame.presentation.solution.errors.SimpleSolutionErrorModelFactory
- All Implemented Interfaces:
ISolutionErrorModelFactory
Simple implementation that formats error model descriptions by joining
the
messages of the exception chain.- Author:
- Erik Zemčík
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSolutionErrorModel(InvalidSyntaxException exception) Creates asolution error modelfor an exception caused by usage of an invalid syntax in the solution.createSolutionErrorModel(StepEvaluationException exception) Creates asolution error modelfor an exception caused by error during evaluation of the solution.
-
Constructor Details
-
SimpleSolutionErrorModelFactory
public SimpleSolutionErrorModelFactory()
-
-
Method Details
-
createSolutionErrorModel
Description copied from interface:ISolutionErrorModelFactoryCreates asolution error modelfor an exception caused by usage of an invalid syntax in the solution.- Specified by:
createSolutionErrorModelin interfaceISolutionErrorModelFactory- Parameters:
exception- invalid syntax exception- Returns:
- model containing relevant information about the exception
-
createSolutionErrorModel
Description copied from interface:ISolutionErrorModelFactoryCreates asolution error modelfor an exception caused by error during evaluation of the solution.- Specified by:
createSolutionErrorModelin interfaceISolutionErrorModelFactory- Parameters:
exception- step evaluation exception- Returns:
- model containing relevant information about the exception
-