public final class ErrorCodes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE_UNKNOWN_MSG
Error code unknown
|
static int |
SUDOKUSOLVER_BOARD_ERROR
Board contains an error.
|
static String |
SUDOKUSOLVER_BOARD_ERROR_MSG
Board contains an error.
|
static int |
SUDOKUSOLVER_CHECKIFUNIQUESOLUTION_CHECKING_NOT_STARTED
Finding all Sudoku solutions requested, but not started.
|
static String |
SUDOKUSOLVER_CHECKIFUNIQUESOLUTION_CHECKING_NOT_STARTED_MSG
Finding all Sudoku solutions requested, but not started.
|
static int |
SUDOKUSOLVER_FINDALLSOLUTIONS_SEARCHING_NOT_STARTED
Finding all Sudoku solutions requested, but not started.
|
static String |
SUDOKUSOLVER_FINDALLSOLUTIONS_SEARCHING_NOT_STARTED_MSG
Finding all Sudoku solutions requested, but not started.
|
static int |
SUDOKUSOLVER_GETCELLDIGIT_INCORRECT_INDEX
Incorrect cell definition while calling getCell method (incorrect index).
|
static String |
SUDOKUSOLVER_GETCELLDIGIT_INCORRECT_INDEX_MSG
Incorrect cell definition while calling getCell method (incorrect index).
|
static int |
SUDOKUSOLVER_LOADBOARD_LOADING_FAILED
Sudoku board loading failed.
|
static String |
SUDOKUSOLVER_LOADBOARD_LOADING_FAILED_MSG
Sudoku board loading failed.
|
static int |
SUDOKUSOLVER_SETCELL_INCORRECT_DEFINITION
Incorrect cell definition while calling setCell method (incorrect index or incorrect digit).
|
static String |
SUDOKUSOLVER_SETCELL_INCORRECT_DEFINITION_MSG
Incorrect cell definition while calling setCell method (incorrect index or incorrect digit).
|
static int |
SUDOKUSOLVER_SOLVE_SOLVING_FAILED
Sudoku solving requested, but falied.
|
static String |
SUDOKUSOLVER_SOLVE_SOLVING_FAILED_MSG
Sudoku solving requested, but falied.
|
static int |
SUDOKUSOLVER_SOLVE_SOLVING_NOT_STARTED
Sudoku solving requested, but not started.
|
static String |
SUDOKUSOLVER_SOLVE_SOLVING_NOT_STARTED_MSG
Sudoku solving requested, but not started.
|
static int |
SUDOKUSTORE_BOARDSEGMENTSTARTINDEX_INCORRECT_SEGMENT
Incorrect segment index while calling
SudokuStore.boardSegmentStartIndex(int) |
static String |
SUDOKUSTORE_BOARDSEGMENTSTARTINDEX_INCORRECT_SEGMENT_MSG
Incorrect segment index while calling
SudokuStore.boardSegmentStartIndex(int) |
static int |
SUDOKUSTORE_CALCULATEPUZZLERATING_NO_SOLUTION
Puzzle solution does not exist.
|
static String |
SUDOKUSTORE_CALCULATEPUZZLERATING_NO_SOLUTION_MSG
Puzzle solution does not exist.
|
static int |
SUDOKUSTORE_CALCULATEPUZZLERATING_NON_UNIQUE_SOLUTION
Puzzle has non-unique solution.
|
static String |
SUDOKUSTORE_CALCULATEPUZZLERATING_NON_UNIQUE_SOLUTION_MSG
Puzzle has non-unique solution.
|
static int |
SUDOKUSTORE_CALCULATEPUZZLERATING_PUZZLE_ERROR
Obvious puzzle error.
|
static String |
SUDOKUSTORE_CALCULATEPUZZLERATING_PUZZLE_ERROR_MSG
Puzzle contains obvious puzzle error.
|
static int |
SUDOKUSTORE_CALCULATEPUZZLERATING_THREADS_JOIN_FAILED
Threads join failed.
|
static String |
SUDOKUSTORE_CALCULATEPUZZLERATING_THREADS_JOIN_FAILED_MSG
Threads join failed.
|
static int |
SUDOKUSTORE_RANDOMINDEX_INCORRECT_PARAMETER
Negative or zero parameter while calling
SudokuStore.randomIndex(int) |
static String |
SUDOKUSTORE_RANDOMINDEX_INCORRECT_PARAMETER_MSG
Negative or zero parameter while calling
SudokuStore.randomIndex(int) |
static int |
SUDOKUSTORE_RANDOMNUMBER_INCORRECT_PARAMETER
Negative or zero parameter while calling
SudokuStore.randomNumber(int) |
static String |
SUDOKUSTORE_RANDOMNUMBER_INCORRECT_PARAMETER_MSG
Negative or zero parameter while calling
SudokuStore.randomNumber(int) |
| Constructor and Description |
|---|
ErrorCodes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
consolePrintlnIfError(int errorCode) |
static boolean |
errorCodeExists(int errorCode)
Checks whether error code exists.
|
static String |
getErrorDescription(int errorCode)
Return error code description.
|
public static final int SUDOKUSOLVER_LOADBOARD_LOADING_FAILED
public static final int SUDOKUSOLVER_SOLVE_SOLVING_NOT_STARTED
public static final int SUDOKUSOLVER_SOLVE_SOLVING_FAILED
public static final int SUDOKUSOLVER_FINDALLSOLUTIONS_SEARCHING_NOT_STARTED
public static final int SUDOKUSOLVER_CHECKIFUNIQUESOLUTION_CHECKING_NOT_STARTED
public static final int SUDOKUSOLVER_SETCELL_INCORRECT_DEFINITION
public static final int SUDOKUSOLVER_GETCELLDIGIT_INCORRECT_INDEX
public static final int SUDOKUSTORE_BOARDSEGMENTSTARTINDEX_INCORRECT_SEGMENT
SudokuStore.boardSegmentStartIndex(int)public static final int SUDOKUSTORE_RANDOMINDEX_INCORRECT_PARAMETER
SudokuStore.randomIndex(int)public static final int SUDOKUSTORE_RANDOMNUMBER_INCORRECT_PARAMETER
SudokuStore.randomNumber(int)public static final int SUDOKUSOLVER_BOARD_ERROR
SudokuSolver,
Constant Field Valuespublic static final int SUDOKUSTORE_CALCULATEPUZZLERATING_PUZZLE_ERROR
public static final int SUDOKUSTORE_CALCULATEPUZZLERATING_NO_SOLUTION
public static final int SUDOKUSTORE_CALCULATEPUZZLERATING_NON_UNIQUE_SOLUTION
public static final int SUDOKUSTORE_CALCULATEPUZZLERATING_THREADS_JOIN_FAILED
public static final String SUDOKUSOLVER_LOADBOARD_LOADING_FAILED_MSG
public static final String SUDOKUSOLVER_SOLVE_SOLVING_NOT_STARTED_MSG
public static final String SUDOKUSOLVER_SOLVE_SOLVING_FAILED_MSG
public static final String SUDOKUSOLVER_FINDALLSOLUTIONS_SEARCHING_NOT_STARTED_MSG
public static final String SUDOKUSOLVER_CHECKIFUNIQUESOLUTION_CHECKING_NOT_STARTED_MSG
public static final String SUDOKUSOLVER_SETCELL_INCORRECT_DEFINITION_MSG
public static final String SUDOKUSOLVER_GETCELLDIGIT_INCORRECT_INDEX_MSG
public static final String SUDOKUSTORE_BOARDSEGMENTSTARTINDEX_INCORRECT_SEGMENT_MSG
SudokuStore.boardSegmentStartIndex(int)public static final String SUDOKUSTORE_RANDOMINDEX_INCORRECT_PARAMETER_MSG
SudokuStore.randomIndex(int)public static final String SUDOKUSTORE_RANDOMNUMBER_INCORRECT_PARAMETER_MSG
SudokuStore.randomNumber(int)public static final String SUDOKUSOLVER_BOARD_ERROR_MSG
SudokuSolver,
Constant Field Valuespublic static final String SUDOKUSTORE_CALCULATEPUZZLERATING_PUZZLE_ERROR_MSG
public static final String SUDOKUSTORE_CALCULATEPUZZLERATING_NO_SOLUTION_MSG
public static final String SUDOKUSTORE_CALCULATEPUZZLERATING_NON_UNIQUE_SOLUTION_MSG
public static final String SUDOKUSTORE_CALCULATEPUZZLERATING_THREADS_JOIN_FAILED_MSG
public static final String ERROR_CODE_UNKNOWN_MSG
public static final String getErrorDescription(int errorCode)
errorCode - Error codeERROR_CODE_UNKNOWN_MSG.public static final boolean errorCodeExists(int errorCode)
errorCode - Error codepublic static final void consolePrintlnIfError(int errorCode)
Copyright © 2017. All rights reserved.