TheAlgorithms/Java

Documented errors, page 2 of 5. Back to TheAlgorithms/Java

Code / MessageTypeSeverityTags
Input string must not be null
validation error null-check, string, dynamic-programming, input-validation
Cannot compare PN-Counters with different number of nodes
exception error crdt, pncounter, distributed-systems, validation
Null items are not allowed
validation error java, circular-buffer, null-check, argument-validation, datastructures
Graph contains a cycle, topological sort not possible
exception error graph, topological-sort, cycle, algorithm-invariant
Index is out of bounds for the current alphabet of size .
exception error compression, move-to-front, inverse-transform, bounds, java
stepSize should be greater than zero
validation error validation, numerical-methods, ode, precondition
The input matrix cannot have null or empty rows
exception error matrix, precondition, null-row, linear-algebra
Incorrect octal digit
validation error number-conversion, input-validation, octal
Input strings must not be null.
validation error string-distance, null-check, input-validation, java
Position must be between 0 and
exception error validation, array, input-validation, off-by-one
Time step must be positive.
validation error java, physics, parameter-validation, numerical-integration, time-step, illegal-argument
Denominator cannot be 0
validation error math, validation, division-by-zero, fraction, record, constructor
Input x-coordinates must be unique.
exception error math, interpolation, invalid-argument, duplicate-values
INVALID_NEGATIVE
Invalid Input. Incorrect 'negative' placement
exception error java, words-to-number, grammar, negative
Invalid radix: . Radix must be between 2 and 16.
exception error conversion, radix, validation, illegalargument, bounds
Key must contain integers from 1 to
exception error cipher, permutation, off-by-one, validation, illegal-argument
Number must be positive
exception error math, validation, illegal-argument, number-theory
Queue is full
exception error priority-queue, data-structure, capacity, bounded-queue, heap, runtime-exception, java
Input value must be a positive integer. Input value
validation error math, prime, argument-validation, positive-integer
Please input Integer Number between 0 and 500
exception error math, pi, invalid-argument, out-of-range
Points must have the same dimension
exception error tree, invalid-argument, java, datastructures, kdtree, dimension
All side lengths must be positive
validation error math, geometry, herons-formula, argument-validation, triangle
brackets is null
exception error stacks, brackets, null-check, validation, illegalargument
Length must be non-negative
validation error java, physics, relativity, parameter-validation, illegal-argument
Matrix must be square
validation error graph, validation, matrix, tsp, ragged-array
initialCapacity < 1
exception error heap, priority-queue, constructor, capacity, validation
Matrix must contain at least one element.
exception error matrix, median, empty-check, argument-validation
Capacity cannot be negative.
exception error dynamic-array, validation, constructor
Input string cannot be null or empty.
exception error compression, arithmetic-coding, validation, illegal-argument
Point has wrong dimension
exception error tree, invalid-argument, java, datastructures, kdtree, dimension
Empty list given for Mean computation.
exception error math, validation, illegal-argument, statistics, empty-collection
Input array should not contain negative number(s).
validation error input-validation, array, dynamic-programming, negative-values
Message is empty
exception error cipher, rsa, validation, illegal-argument
Array cannot be null
exception error array, null-check, precondition, insert
Input array should have at least 2 distinct elements
exception error math, array, distinct-values, argument-validation
Weights must be -1 (no edge) or >= 0
validation error graph, validation, sentinel, negative-weight, yens, dijkstra
Cannot enqueue null item.
exception error queue, data-structure, concurrency, null-check, input-validation, java
Character array and frequency array must have the same…
exception error huffman, precondition, length-mismatch, compression, tree
Interval must be > 0
validation error java, fifo-cache, eviction-strategy, argument-validation, cache
Key not found in the table.
exception error hashmap, cuckoo-hashing, not-found, input-validation
Matrix A and vector b dimensions do not match.
validation error linear-algebra, input-validation, dimension-mismatch, vector, chebyshev-iteration, java
Matrix is empty
exception error matrix, transpose, empty-check, argument-validation, doc-mismatch
Stack size must be greater than 0
exception error stack, invalid-argument, java, datastructures, constructor
TTL must be >= 0
validation error java, fifo-cache, ttl, argument-validation, cache
Base must be greater than 02
validation error geometry, input-validation, area, java, string-concatenation-bug
Matrix A and vector x0 dimensions do not match.
validation error linear-algebra, input-validation, dimension-mismatch, vector, chebyshev-iteration, java
Original index must be between 0 and
exception error compression, bwt, index, validation, illegal-argument
State must be array of length 2
exception error java, physics, parameter-validation, numerical-integration, rk4, state-vector, illegal-argument
Index is out of heap range [1, ]
exception error heap, max-heap, index-out-of-bounds, one-based-index
Median is undefined for an empty data set.
exception warning median, streaming, precondition, heap, statistics
Shift amount cannot be negative
validation error bit-manipulation, rotate, argument-validation, illegalargumentexception
Key cannot be null or empty
exception error cipher, permutation, validation, illegal-argument
The input matrix cannot be jagged
exception error matrix, precondition, jagged-array, linear-algebra
Frame speed must be lower than the speed of light
validation error java, physics, relativity, parameter-validation, unit-mismatch, illegal-argument
Input date must be 10 characters long in the format…
exception error date, zellers-congruence, format-validation, argument-validation
x and y must be finite numbers.
validation error conversions, coordinate, nan, infinity, validation, java
Bases must be between 2 and 10.
exception error conversions, base-conversion, radix-range, java
Window size and lookahead buffer size must be positive.
exception error compression, lz77, validation, illegal-argument
X and Y must be non-null, non-empty, and of the same length.
validation error machine-learning, validation, null-check, empty-input, linear-regression, argument-mismatch
Number of vertices must be positive
exception error graph, input-validation, argument-validation
The exponent must be positive
validation error bit-manipulation, java, validation, illegalargumentexception
Weights matrix must be square
validation error graph, validation, matrix, null-check, ragged-array, yens
classifier has not been fitted
exception error machine-learning, lifecycle, state-error, not-fitted, naive-bayes, illegal-state
Cannot insert null into the heap.
exception error heap, null-check, precondition, generic-heap
Focal length and object distance must be non-zero.
exception error physics, input-validation, illegal-argument, thin-lens
Input is not a valid binary number.
validation error conversions, binary, octal, validation, java
Key and value must not be null
validation error java, lifo-cache, null-check, argument-validation, cache
Key must not be null
validation error java, lifo-cache, null-check, argument-validation, cache
Number must be positive.
exception error math, validation, illegal-argument, number-theory
Invalid input
exception error array, precondition, rotation, null-check
IPv4 address is empty.
validation error network, ipv4, ipv6, input-validation, null-check
Input parameter of incorrect format:
exception error math, parsing, invalid-format, number-format
No converter for
validation error java, unit-conversion, missing-conversion, nosuchelement
Character array and frequency array cannot be null
exception error huffman, null-check, precondition, compression, tree
Input array must not be null
exception error array, null-check, precondition, shuffle, fisher-yates
No satisfying assignment exists for the given expression.
panic error sat, unsatisfiable, algorithm-invariant
numOfTerms nonnegative.
exception error math, series, input-validation, argument-validation
x and y arrays must have the same length.
exception error math, validation, illegal-argument, interpolation, array-length
Invalid Baconian code
validation error cryptography, ciphers, java, validation, illegalargumentexception
n must be non-negative
validation error combinatorics, input-validation, bell-numbers, java
Initial bucket capacity must be between 1 and 1000
exception error sorting, config, range-validation, constructor
Matrices cannot be multiplied: incompatible dimensions.
exception error matrix, linear-algebra, dimension-mismatch, argument-validation
Item count must be between 0 and the length of the values…
validation error knapsack, out-of-bounds, input-validation, java
The input matrix cannot be empty
exception error matrix, precondition, empty-input, linear-algebra
capacity must greater than 0!
validation error lru-cache, configuration, validation, constructor
Input parameter must not be null!
exception error math, parsing, null-argument, number-format
Invalid date.
exception error date, zellers-congruence, calendar, argument-validation
Key cannot be empty.
exception error cipher, vigenere, validation, illegal-argument
alpha must be greater than 0
validation error machine-learning, validation, argument-range, naive-bayes, smoothing
Invalid Base64 input length; must be multiple of 4
exception error conversions, base64, rfc-4648, validation, java
order must be greater than zero
validation error audio, filter, constructor, argument-validation, illegalargumentexception
The combination length cannot be negative.
validation error backtracking, combinatorics, argument-validation, illegalargumentexception
aCoeffs.get(0) must not be zero
validation error audio, filter, argument-validation, division-by-zero, illegalargumentexception
sample length must match training feature count
validation error machine-learning, validation, dimensionality-mismatch, naive-bayes, feature-vector
Tree must have exactly n-1 edges
exception error tree, invalid-argument, java, datastructures, centroid-decomposition, graph-invariant
Malformed encoded string: incomplete sequence ending.
exception error compression, huffman, truncation, validation, illegal-argument
Time must be non-negative
validation error java, physics, relativity, parameter-validation, illegal-argument
Cannot merge PN-Counters with different number of nodes
exception error crdt, pncounter, distributed-systems, validation
Character '%c' (U+%04X) not found in Huffman dictionary.
exception error compression, huffman, dictionary, validation, illegal-argument
Insertion sort threshold must be between 1 and 1000
exception error sorting, config, range-validation, constructor