TheAlgorithms/Java
Documented errors, page 5 of 5. Back to TheAlgorithms/Java
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Month must be between 1 and 12. | exception | error | date, zellers-congruence, range-validation, argument-validation |
| MinPriorityQueue is full. Cannot insert new element. | exception | error | priority-queue, capacity, data-structure, bounded, java |
| Element cannot be null | exception | error | linked-list, null-check, data-structure, precondition, java |
| MinPriorityQueue is empty. Cannot delete. | exception | error | priority-queue, empty-state, data-structure, precondition, java |
| Position must be between 0 and + (array.length - 1) | validation | error | validation, array, input-validation, off-by-one |
| Character array and frequency array cannot be empty | exception | error | huffman, precondition, empty-input, compression, tree |
| green should be between 0 and 255 | validation | error | color-conversion, input-validation, rgb, range-check |
| Input must be a non-empty binary string. | validation | error | bit-manipulation, java, validation, string, illegalargumentexception |
| Keys must be distinct | validation | error | input-validation, duplicate-keys, dynamic-programming, bst |
| blue should be between 0 and 255 | validation | error | color-conversion, input-validation, rgb, range-check |
| Input array must not be empty. | exception | error | search, input-validation, empty-collection |
| Queue is empty, cannot remove element | exception | error | queue, data-structure, underflow, empty-state, java |
| Position out of bounds | exception | error | linked-list, index-out-of-bounds, data-structure, off-by-one, java |
| Queue is empty, cannot peek rear | exception | error | queue, data-structure, underflow, empty-state, java |
| Number of discs must be non-negative | exception | error | puzzles, recursion, input-validation, illegal-argument |
| Capacity must not be negative. | validation | error | knapsack, negative-capacity, input-validation, java |
| Other public value must be non-null and positive. | validation | error | cryptography, ciphers, diffie-hellman, java, validation, biginteger, illegalargumentexception |
| Radius must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Size must be greater than 0 | exception | error | queue, capacity, data-structure, invalid-argument, config, java |
| Credit card number - have a typo | validation | error | validation, luhn, credit-card, checksum, input-validation |
| Input matrices cannot be null | exception | error | matrix, linear-algebra, null-check, argument-validation |
| Side length must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| The list of elements must not be empty. | exception | error | selection, empty-collection, input-validation |
| Input numbers must be natural! | validation | error | validation, maths, precondition, positive-number, illegal-argument |
| Inputs cannot be null. | validation | error | cryptography, ciphers, elgamal, java, validation, null-safety, illegalargumentexception |
| Rod length cannot be negative. | validation | error | input-validation, negative-values, dynamic-programming |
| Stack is empty, cannot peek element | exception | error | stack, empty-state, java, datastructures |
| No more elements in the bag. | exception | error | java, datastructures, iterator, nosuchelement |
| Empty stack. Nothing to peek | exception | error | stack, empty-state, java, datastructures, linked-list |
| Base, secret, and prime must be non-null and positive… | validation | error | cryptography, ciphers, diffie-hellman, java, validation, biginteger, illegalargumentexception |
| Capacity must be greater than 0! | validation | error | mru-cache, configuration, validation, constructor |
| Input parameter must not be empty! | exception | error | math, parsing, empty-string, number-format |
| Width must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Edge array must have exactly two elements | exception | error | graph, graph-coloring, input-validation, data-shape |
MISSING_DECIMAL_NUMBERS Invalid Input. Decimal part is missing numbers. | exception | error | java, words-to-number, grammar, decimal |
| Random must not be null | validation | error | rr-cache, null-safety, validation, builder |
| Cost matrix must have at least 1 column | validation | error | graph-algorithm, argument-validation, matrix-shape, assignment-problem |
| Number must be zero for E assignment! | exception | error | math, builder, runtime-exception, state-validation |
| Cost matrix must not be null or empty | validation | error | graph-algorithm, argument-validation, null-check, assignment-problem |
| Adjacency list must not contain null sets | validation | error | null-check, graph, input-validation, list |
| Input must be a positive integer. Provided: | exception | error | math, validation, illegal-argument, recursion |
| Price array cannot be null or empty. | validation | error | null-check, array, dynamic-programming, input-validation |
| Input arrays cannot be null. | validation | error | knapsack, null-check, input-validation, java |
| Values and weights arrays must not be null. | validation | error | knapsack, null-check, input-validation, java |
| Height must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Queue is empty, cannot peek front | exception | error | queue, data-structure, underflow, empty-state, java |
| Input matrix cannot be null or empty | exception | error | prefix-sum, input-validation, illegal-argument, matrix, null-check |
| Base must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |