TheAlgorithms/Java
Documented errors, page 4 of 5. Back to TheAlgorithms/Java
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Invalid root | validation | error | input-validation, index-out-of-bounds, graph, dynamic-programming |
| slant height must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Table is empty, cannot delete. | exception | warning | hashmap, cuckoo-hashing, state, input-validation |
| Values array cannot be empty or null | exception | error | math, validation, illegal-argument, statistics, null-check |
| Array contains negative integers. | exception | error | sorting, non-negative-domain, input-validation |
| - is not a card number | validation | error | validation, luhn, credit-card, input-validation, format |
| Empty stack. Nothing to pop | exception | error | stack, empty-state, java, datastructures, linked-list |
| Invalid key matrix. Determinant is zero modulo 26. | exception | error | cryptography, ciphers, hill-cipher, java, validation, linear-algebra, illegalargumentexception |
| Side Length must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Given range of values is invalid! | validation | error | validation, maths, precondition, range, illegal-argument |
| Input expression cannot be null. | exception | error | stacks, brackets, null-check, validation, illegalargument |
| Number of hash functions and bit array size must be greater… | validation | error | java, datastructures, bloom-filter, construction, illegalargument |
| Weight capacity should not be negative. | validation | error | knapsack, negative-capacity, input-validation, java |
| imageWidth should be greater than zero | validation | error | validation, graphics, image, input-validation |
| Input cannot be null or empty | validation | error | number-conversion, input-validation, octal, null-check |
| Invalid BCD digit | validation | error | bit-manipulation, bcd, encoding, argument-validation, illegalargumentexception |
| Self-loops are not allowed | exception | error | graph, graph-coloring, input-validation |
| Day must be between 1 and 31. | exception | error | date, zellers-congruence, range-validation, argument-validation |
| Gravity must be positive | exception | error | java, physics, parameter-validation, pendulum, constructor, illegal-argument |
| k must be >= 1 | validation | error | graph, validation, argument-range, yens, k-shortest-paths |
| ${position} | exception | error | linked-list, index-out-of-bounds, data-structure, off-by-one, java |
| Number of nodes must be between 1 and + MAX_NODES | validation | error | validation, pagerank, graph, input-validation, capacity |
| Number of variables cannot be negative. | exception | error | sat, input-validation, argument-validation |
| Please call solve() before checking for a solution. | panic | error | sat, state-machine, api-misuse |
| Points array cannot be empty | exception | error | tree, invalid-argument, java, datastructures, kdtree, empty-state |
| saturation should be between 0 and 1 | validation | error | color-conversion, input-validation, hsv, range-check |
| Encoded text contains invalid characters | exception | error | compression, huffman, binary, validation, illegal-argument |
| Invalid Base64 character | validation | error | conversions, base64, rfc-4648, character-validation, java |
| maxStep should be greater than zero | validation | error | validation, graphics, fractal, iteration, input-validation |
| Decimal number cannot be negative. | validation | error | number-conversion, input-validation, octal, range-check |
| Edge vertex out of range | exception | error | graph, indexing, input-validation |
| hue should be between 0 and 360 | validation | error | color-conversion, input-validation, hsv, range-check |
| Invalid node in edge | exception | error | tree, invalid-argument, java, datastructures, centroid-decomposition, indexing |
| Length must be greater than 0 | validation | error | validation, maths, geometry, precondition, illegal-argument |
| Total nodes must be between 1 and + MAX_NODES | validation | error | validation, pagerank, graph, input-validation, capacity |
| additivePersistence() does not accept negative values | exception | error | math, persistence, invalid-argument, negative-value |
| Maze must not be null or empty. | validation | error | backtracking, matrix, null-check, argument-validation, illegalargumentexception |
MULTIPLE_NEGATIVES Invalid Input. Multiple 'Negative's detected. | validation | error | java, words-to-number, grammar, negative |
| sylvester() does not accept negative numbers or zero. | exception | error | math, recursion, input-validation, argument-validation |
| Keys and frequencies cannot be null | validation | error | null-check, array, dynamic-programming, input-validation |
| Key must not be null. | exception | error | search, nullable, input-validation, null-check |
| Target must be non-negative | exception | error | recursion, input-validation, illegal-argument, backtracking |
| invalid character | exception | error | conversions, base-conversion, character-validation, java |
| Bit length must be at least | validation | error | cryptography, ciphers, elgamal, java, security, validation, illegalargumentexception |
| Buffer size must be positive | validation | error | java, datastructures, circular-buffer, construction, illegalargument |
| The index must be less than the number of elements. | exception | error | selection, index-out-of-bounds, off-by-one, input-validation |
| Adjacency list must not be null | validation | error | null-check, graph, input-validation, list |
| Cannot peek from an empty stack. | exception | error | stack, empty-state, java, datastructures |
| Edges cannot be null | exception | error | tree, null-argument, java, datastructures, centroid-decomposition, precondition |
| Vertex is out of bounds | exception | error | graph, graph-coloring, indexing, input-validation |
| Encrypted message should be a multiple of 64 characters in… | validation | error | cryptography, ciphers, des, java, validation, illegalargumentexception |
| Input array cannot be null or empty. | exception | error | prefix-sum, input-validation, illegal-argument, data-structure |
| MinPriorityQueue is empty. Cannot peek. | exception | error | priority-queue, empty-state, data-structure, precondition, java |
| value should be between 0 and 1 | validation | error | color-conversion, input-validation, hsv, range-check |
| Neighbor index out of bounds | validation | error | input-validation, index-out-of-bounds, graph |
| Number must be zero to set! | exception | error | math, builder, runtime-exception, state-validation |
| octaveCount must be >= 1 | validation | error | validation, perlin-noise, procedural-generation, input-validation, iteration |
| Cannot enqueue null data | exception | error | queue, data-structure, null-check, input-validation, java |
| Key must not be empty | exception | error | cipher, xor, validation, illegal-argument |
| Index: , Size | exception | error | dynamic-array, index-bounds, off-by-one |
| Input lists must not be null. | exception | error | merge, linked-list, null-check, data-structure, precondition, java |
| Input n must be non-negative | validation | error | fibonacci, negative-input, input-validation, java |
NULL_INPUT Invalid Input. 'null' or empty input provided | validation | error | java, words-to-number, null-input, input-validation |
| Capacity matrix must not be null or empty | validation | error | null-check, graph, input-validation, matrix |
| Frequencies cannot be negative | validation | error | input-validation, array, negative-values, dynamic-programming |
| imageHeight should be greater than zero | validation | error | validation, graphics, image, fractal, input-validation |
| Key cannot be null | validation | error | java, fifo-cache, null-check, argument-validation, cache |
| Segment list must not be null | validation | error | null-check, geometry, input-validation, list |
| Unit cannot be null. | validation | error | time-conversion, input-validation, null-check |
| Base must be between 2 and 36 | validation | error | number-conversion, input-validation, range-check |
| inputUnit must be different from outputUnit. | validation | error | java, unit-conversion, input-validation, illegalargument |
| The element to be deleted does not exist! | exception | error | linked-list, not-found, data-structure, java |
| Cannot extract from an empty heap | exception | error | heap, max-heap, empty-state, checked-exception |
| Damping factor must be between 0 and 1 | validation | error | validation, pagerank, input-validation, range, numeric |
| Number of vertices cannot be negative | exception | error | graph, graph-coloring, input-validation |
| Object distance must be non-zero. | exception | error | physics, input-validation, illegal-argument, divide-by-zero, thin-lens |
| successors and predecessors must not be null | validation | error | graph-algorithm, argument-validation, null-check, dfs |
| Capacity matrix must be square | validation | error | graph-algorithm, argument-validation, matrix-shape, gomory-hu-tree |
| Input data contains invalid characters. Only uppercase A-Z… | exception | error | cryptography, ciphers, java, validation, string, illegalargumentexception |
| Message must be smaller than the prime modulus p. | validation | error | cryptography, ciphers, elgamal, java, validation, biginteger, illegalargumentexception |
| successors must not be null | validation | error | graph-algorithm, argument-validation, null-check, dfs |
| Invalid row indices | exception | error | prefix-sum, input-validation, index-out-of-bounds, matrix, off-by-one |
| Queue capacity must be greater than 0 | exception | error | queue, data-structure, constructor, capacity, input-validation, java |
| Weights matrix must not be null or empty | validation | error | graph, validation, null-check, empty-input, yens |
| Costs must be non-negative | validation | error | graph-algorithm, argument-validation, value-constraint, assignment-problem |
| Stack is empty, cannot pop element | exception | error | stack, empty-state, java, datastructures |
| Capacities must be non-negative | validation | error | graph-algorithm, argument-validation, value-constraint, max-flow, push-relabel |
| Invalid column indices | exception | error | prefix-sum, input-validation, index-out-of-bounds, matrix, off-by-one |
| Invalid input parameters | exception | error | randomized, monte-carlo, input-validation, illegal-argument, generic-message |
| Utility class | exception | warning | utility-class, reflection, instantiation, design |
| Cannot delete from empty heap | exception | error | heap, empty-state, data-structure, precondition, java |
| red should be between 0 and 255 | validation | error | color-conversion, input-validation, rgb, range-check |
| The index must not be negative. | exception | error | selection, index-out-of-bounds, off-by-one, input-validation |
| Value and weight arrays must be of the same length. | validation | error | knapsack, array-mismatch, input-validation, java |
| Array is empty | validation | error | validation, array, input-validation, empty-state |
| Please call solve() before fetching the solution. | panic | error | sat, state-machine, api-misuse |
| Input array must be sorted. | exception | error | search, precondition, sorted-input, input-validation |
| Keys and frequencies must have the same length | validation | error | input-validation, array, length-mismatch, dynamic-programming |
| length must be non-negative | exception | error | cryptography, ciphers, one-time-pad, java, validation, illegalargumentexception |
| Iterations must be at least 1 | validation | error | validation, pagerank, iteration, input-validation |