Class ImmutableSolutionErrorModel

java.lang.Object
dev.zemco.codegame.presentation.solution.errors.ImmutableSolutionErrorModel
All Implemented Interfaces:
ISolutionErrorModel

public class ImmutableSolutionErrorModel extends Object implements ISolutionErrorModel
Immutable implementation holding details about an error in user's solution to a problem.
Author:
Erik Zemčík
  • Constructor Details

    • ImmutableSolutionErrorModel

      public ImmutableSolutionErrorModel(String description, Integer linePosition)
      Creates an instance of ImmutableSolutionErrorModel holding the given description and linePosition.
      Parameters:
      description - description of the error
      linePosition - zero-based line position associated with the error, may be null
      Throws:
      IllegalArgumentException - if description is null or if linePosition is not null and is not a positive integer
  • Method Details