InvalidSudokuConfigurationException class

Thrown when the configuration of the Sudoku is not valid.

Configuration of the Sudoku follows the rules of Sudoku.

Conditions:

  • List of 9 Lists of 9 ints
  • Every row must have the numbers 1-9 without repetition
  • Every column must have the numbers 1-9 without repetition
  • Every 3x3 box must have the number 1-9 without repetition
  • Only positions of non-zero and non-null values are considered
  • Solvability of the puzzle is not considered

SudokuUtilities.isValidConfiguration() can be used to check for validity to prevent this Exception.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

errorMessage() String
Returns the error message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited