ErrLookup › TheAlgorithms/Java

TheAlgorithms/Java

All Algorithms implemented in Java · Java · 819 source files

Analyzed at fdfb9a395b on 2026-08-13. 520 documented errors.

Code / MessageTypeSeverityTags
Alpha must be between 0 and 1.
validation error audio, filter, constructor, argument-validation, illegalargumentexception
order must be greater than zero
validation error audio, filter, constructor, argument-validation, illegalargumentexception
aCoeffs must be of size {}, got {}
validation error audio, filter, argument-validation, illegalargumentexception, off-by-one
aCoeffs.get(0) must not be zero
validation error audio, filter, argument-validation, division-by-zero, illegalargumentexception
bCoeffs must be of size {}, got {}
validation error audio, filter, argument-validation, illegalargumentexception, off-by-one
Invalid input: 0 ≤ k ≤ n is required.
validation error backtracking, combinatorics, argument-validation, illegalargumentexception
The combination length cannot be negative.
validation error backtracking, combinatorics, argument-validation, illegalargumentexception
The number of pairs of parentheses cannot be negative
validation error backtracking, string-generation, argument-validation, illegalargumentexception
Maze must not be null or empty.
validation error backtracking, matrix, null-check, argument-validation, illegalargumentexception
Maze must be a square (n x n) matrix.
validation error backtracking, matrix, shape-validation, argument-validation, illegalargumentexception
Invalid BCD digit: {}
validation error bit-manipulation, bcd, encoding, argument-validation, illegalargumentexception
Value out of bounds for BCD representation: {}
validation error bit-manipulation, bcd, encoding, range-validation, illegalargumentexception
Shift amount cannot be negative: {}
validation error bit-manipulation, rotate, argument-validation, illegalargumentexception
Bit positions must be between 0 and 31
validation error bit-manipulation, swap, argument-validation, range-validation, illegalargumentexception
Absolute value of Long.MIN_VALUE does not fit into signed lo
exception error bit-manipulation, gcd, overflow, arithmeticexception, long-min-value
Arguments must not be null
validation error bit-manipulation, gcd, null-check, biginteger, nullpointerexception
Input must be non-negative
validation error bit-manipulation, count-bits, argument-validation, illegalargumentexception
Input cannot be negative
validation error bit-manipulation, java, validation, illegalargumentexception
The exponent must be positive
validation error bit-manipulation, java, validation, illegalargumentexception
Input must be a non-empty binary string.
validation error bit-manipulation, java, validation, string, illegalargumentexception
Input must contain only '0' and '1'. Found: {}
validation error bit-manipulation, java, validation, string, illegalargumentexception
Input must contain only '0' and '1'.
validation error bit-manipulation, java, validation, string, null-safety, illegalargumentexception
Invalid Baconian code: {}
validation error cryptography, ciphers, java, validation, illegalargumentexception
DES key must be supplied as a 64 character binary string
validation error cryptography, ciphers, des, java, validation, illegalargumentexception
Encrypted message should be a multiple of 64 characters in l
validation error cryptography, ciphers, des, java, validation, illegalargumentexception
Base, secret, and prime must be non-null and positive values
validation error cryptography, ciphers, diffie-hellman, java, validation, biginteger, illegalargumentexception
Other public value must be non-null and positive.
validation error cryptography, ciphers, diffie-hellman, java, validation, biginteger, illegalargumentexception
Bit length must be at least {} for security.
validation error cryptography, ciphers, elgamal, java, security, validation, illegalargumentexception
Inputs cannot be null.
validation error cryptography, ciphers, elgamal, java, validation, null-safety, illegalargumentexception
Message must be non-negative.
validation error cryptography, ciphers, elgamal, java, validation, biginteger, illegalargumentexception
Message must be smaller than the prime modulus p.
validation error cryptography, ciphers, elgamal, java, validation, biginteger, illegalargumentexception
Invalid key matrix. Determinant is zero modulo 26.
exception error cryptography, ciphers, hill-cipher, java, validation, linear-algebra, illegalargumentexception
Input data contains invalid characters. Only uppercase A-Z a
exception error cryptography, ciphers, java, validation, string, illegalargumentexception
Input data contains invalid characters.
exception error cryptography, ciphers, java, validation, string, illegalargumentexception
length must be non-negative
exception error cryptography, ciphers, one-time-pad, java, validation, illegalargumentexception
Key length must match input length
exception error cryptography, ciphers, one-time-pad, java, validation, illegalargumentexception
Key cannot be null or empty
exception error cipher, permutation, validation, illegal-argument
Key must contain integers from 1 to {}
exception error cipher, permutation, off-by-one, validation, illegal-argument
Key must contain each position exactly once
exception error cipher, permutation, duplicate, validation, illegal-argument
Message is empty
exception error cipher, rsa, validation, illegal-argument
Key cannot be empty.
exception error cipher, vigenere, validation, illegal-argument
Key must not be empty
exception error cipher, xor, validation, illegal-argument
Input string cannot be null or empty.
exception error compression, arithmetic-coding, validation, illegal-argument
Original index must be between 0 and {}, got: {}
exception error compression, bwt, index, validation, illegal-argument
Huffman tree is empty.
exception error compression, huffman, validation, illegal-state
Character '%c' (U+%04X) not found in Huffman dictionary.
exception error compression, huffman, dictionary, validation, illegal-argument
Invalid binary sequence for single-character tree.
exception error compression, huffman, single-character, validation, illegal-argument
Encoded text contains invalid characters: {}
exception error compression, huffman, binary, validation, illegal-argument
Malformed encoded string: incomplete sequence ending.
exception error compression, huffman, truncation, validation, illegal-argument
Window size and lookahead buffer size must be positive.
exception error compression, lz77, validation, illegal-argument
Bad compressed k: {}
exception error compression, lzw, corruption, validation, illegal-argument
Alphabet cannot be null or empty when text is not empty.
exception error compression, move-to-front, validation, illegal-argument
Symbol '{}' not found in the initial alphabet.
exception error compression, move-to-front, alphabet, validation, java
Index {} is out of bounds for the current alphabet of size {
exception error compression, move-to-front, inverse-transform, bounds, java
Slope and intercept must be valid numbers.
exception error conversions, affine, nan, validation, java
For input string: {}
exception error conversions, base-conversion, radix, validation, java
invalid character:{}
exception error conversions, base-conversion, character-validation, java
Bases must be between 2 and 10.
exception error conversions, base-conversion, radix-range, java
Input cannot be null
exception error conversions, base64, null-check, validation, java
Invalid Base64 input length; must be multiple of 4
exception error conversions, base64, rfc-4648, validation, java
Padding '=' can only appear at the end (last 1 or 2 characte
exception error conversions, base64, rfc-4648, padding, validation, java
A padding '=' must not be followed by a non-padding characte
exception error conversions, base64, rfc-4648, padding, validation, java
Invalid Base64 character: {}
validation error conversions, base64, rfc-4648, character-validation, java
Incorrect binary digit: {}
validation error conversions, binary, validation, java
Incorrect binary digit: {}
validation error conversions, binary, hexadecimal, validation, java
Input is not a valid binary number.
validation error conversions, binary, octal, validation, java
x and y must be finite numbers.
validation error conversions, coordinate, nan, infinity, validation, java
Radius (r) must be non-negative.
validation error conversions, coordinate, polar, validation, java
Theta (angle) must be a finite number.
validation error coordinate-conversion, input-validation, floating-point, math
Base must be between 2 and 36
validation error number-conversion, input-validation, range-check
Decimal number cannot be negative.
validation error number-conversion, input-validation, octal, range-check
Invalid hexadecimal character: {}
validation error number-conversion, input-validation, hexadecimal
IPv4 address is empty.
validation error network, ipv4, ipv6, input-validation, null-check
Not a valid IPv6-mapped IPv4 address.
validation error network, ipv4, ipv6, input-validation
Input cannot be null or empty
validation error number-conversion, input-validation, octal, null-check
Incorrect input: Expecting an octal number (digits 0-7)
validation error number-conversion, input-validation, octal
Input cannot be null or empty
validation error number-conversion, input-validation, octal, null-check
Incorrect octal digit: {}
validation error number-conversion, input-validation, octal
hue should be between 0 and 360
validation error color-conversion, input-validation, hsv, range-check
saturation should be between 0 and 1
validation error color-conversion, input-validation, hsv, range-check
value should be between 0 and 1
validation error color-conversion, input-validation, hsv, range-check
red should be between 0 and 255
validation error color-conversion, input-validation, rgb, range-check
green should be between 0 and 255
validation error color-conversion, input-validation, rgb, range-check
blue should be between 0 and 255
validation error color-conversion, input-validation, rgb, range-check
Unknown Roman symbol: {}
validation error roman-numerals, input-validation
Input cannot be null
validation error roman-numerals, input-validation, null-check
timeValue must be a non-negative number.
validation error time-conversion, input-validation, range-check
Unit cannot be null.
validation error time-conversion, input-validation, null-check
Invalid unit '{}'. Supported units are: {}
validation error java, time-conversion, input-validation, illegalargument
inputUnit must be different from outputUnit.
validation error java, unit-conversion, input-validation, illegalargument
No converter for: {}
validation error java, unit-conversion, missing-conversion, nosuchelement
NULL_INPUT
Invalid Input. 'null' or empty input provided
validation error java, words-to-number, null-input, input-validation
INVALID_CONJUNCTION
Invalid Input. Incorrect 'and' placement
validation error java, words-to-number, grammar, conjunction
UNEXPECTED_WORD
Invalid Input. Unexpected Word: {}
validation error java, words-to-number, grammar, unexpected-word
MULTIPLE_NEGATIVES
Invalid Input. Multiple 'Negative's detected.
validation error java, words-to-number, grammar, negative
INVALID_NEGATIVE
Invalid Input. Incorrect 'negative' placement
exception error java, words-to-number, grammar, negative
UNKNOWN_WORD
Invalid Input. Unknown Word: {word}
exception error java, words-to-number, unknown-word, input-validation
UNEXPECTED_WORD_AFTER_POINT
Invalid Input. Unexpected Word (after Point): {word}
exception error java, words-to-number, grammar, decimal
MISSING_DECIMAL_NUMBERS
Invalid Input. Decimal part is missing numbers.
exception error java, words-to-number, grammar, decimal
No more elements in the bag.
exception error java, datastructures, iterator, nosuchelement
Number of hash functions and bit array size must be greater
validation error java, datastructures, bloom-filter, construction, illegalargument
Buffer size must be positive
validation error java, datastructures, circular-buffer, construction, illegalargument
Null items are not allowed
validation error java, circular-buffer, null-check, argument-validation, datastructures
Key must not be null
validation error java, fifo-cache, null-check, argument-validation, cache
Key and value must not be null
validation error java, fifo-cache, null-check, argument-validation, cache
TTL must be >= 0
validation error java, fifo-cache, ttl, argument-validation, cache
Key cannot be null
validation error java, fifo-cache, null-check, argument-validation, cache
Interval must be > 0
validation error java, fifo-cache, eviction-strategy, argument-validation, cache
Capacity must be > 0
validation error java, fifo-cache, builder, capacity, argument-validation, cache
Default TTL must be >= 0
validation error java, fifo-cache, builder, ttl, argument-validation, cache
Listener must not be null
validation error java, fifo-cache, builder, null-check, argument-validation, cache
Eviction strategy must not be null
validation error java, fifo-cache, builder, null-check, eviction-strategy, argument-validation, cache
Capacity must be greater than zero.
validation error java, lfu-cache, capacity, argument-validation, cache
Key must not be null
validation error java, lifo-cache, null-check, argument-validation, cache
Key and value must not be null
validation error java, lifo-cache, null-check, argument-validation, cache
TTL must be >= 0
validation error java, lifo-cache, ttl, argument-validation, cache
Key cannot be null
validation error java, lifo-cache, null-check, argument-validation, cache
Interval must be > 0
validation error java, lifo-cache, eviction-strategy, argument-validation, cache
Capacity must be > 0
validation error java, lifo-cache, builder, capacity, argument-validation, cache
Default TTL must be >= 0
validation error java, lifo-cache, builder, ttl, argument-validation, cache
Listener must not be null
validation error java, lifo-cache, builder, null-check, argument-validation, cache
Eviction strategy must not be null
validation error java, lifo-cache, builder, null-check, eviction-strategy, argument-validation, cache
cache cannot be empty!
exception error lru-cache, concurrency, thread-safety, data-structures
capacity must greater than 0!
validation error lru-cache, configuration, validation, constructor
Capacity must be greater than 0!
validation error mru-cache, configuration, validation, constructor
Cache cannot be empty!
exception error mru-cache, concurrency, thread-safety, data-structures
Key must not be null
validation error rr-cache, null-safety, validation
Key and value must not be null
validation error rr-cache, null-safety, validation
TTL must be >= 0
validation error rr-cache, configuration, validation, ttl
Interval must be > 0
validation error rr-cache, configuration, validation, eviction-strategy
Capacity must be > 0
validation error rr-cache, configuration, validation, builder
Default TTL must be >= 0
validation error rr-cache, configuration, validation, ttl, builder
Random must not be null
validation error rr-cache, null-safety, validation, builder
Listener must not be null
validation error rr-cache, null-safety, validation, builder
Eviction strategy must not be null
validation error rr-cache, null-safety, validation, builder, eviction-strategy
Cannot compare PN-Counters with different number of nodes
exception error crdt, pncounter, distributed-systems, validation
Cannot merge PN-Counters with different number of nodes
exception error crdt, pncounter, distributed-systems, validation
Capacity cannot be negative.
exception error dynamic-array, validation, constructor
Index cannot be negative.
exception error dynamic-array, index-bounds, validation
Index: {index}, Size: {size}
exception error dynamic-array, index-bounds, off-by-one
Cannot remove element before calling next()
exception error dynamic-array, iterator, illegal-state
Number of vertices must be positive
exception error graph, input-validation, argument-validation
Edges list must not be null or empty
exception error graph, input-validation, null-check
Edge vertex out of range
exception error graph, indexing, input-validation
Source vertex is out of bounds.
exception error graph, shortest-path, indexing, input-validation
Incorrect source
exception error graph, shortest-path, input-validation, argument-validation
Graph contains a negative weight cycle
exception error graph, shortest-path, algorithm-invariant, negative-cycle
Graph contains a cycle, topological sort not possible
exception error graph, topological-sort, cycle, algorithm-invariant
Number of variables cannot be negative.
exception error sat, input-validation, argument-validation
Variable number must be between 1 and {numberOfVariables}
exception error sat, indexing, input-validation
Please call solve() before checking for a solution.
panic error sat, state-machine, api-misuse
Please call solve() before fetching the solution.
panic error sat, state-machine, api-misuse
No satisfying assignment exists for the given expression.
panic error sat, unsatisfiable, algorithm-invariant
Number of vertices cannot be negative
exception error graph, graph-coloring, input-validation
Self-loops are not allowed
exception error graph, graph-coloring, input-validation
Vertex {vertex} is out of bounds
exception error graph, graph-coloring, indexing, input-validation
Edge array must have exactly two elements
exception error graph, graph-coloring, input-validation, data-shape
Key already exists; duplicates are not allowed.
exception error hashmap, cuckoo-hashing, duplicate, input-validation
Table is empty, cannot delete.
exception warning hashmap, cuckoo-hashing, state, input-validation
Key {key} not found in the table.
exception error hashmap, cuckoo-hashing, not-found, input-validation
Table is empty; cannot find keys.
exception error hashmap, cuckoo-hashing, precondition, validation
Unexpected value: {choice}
exception error cli, menu, switch-default, input-validation
Cannot insert null into the heap.
exception error heap, null-check, precondition, generic-heap
Heap is empty
exception error heap, empty-state, illegal-state, generic-heap
Item not found in the heap
exception error heap, membership, priority-update, generic-heap
initialCapacity < 1
exception error heap, priority-queue, constructor, capacity, validation
Element not in queue
exception error heap, priority-queue, identity, change-key
Input list cannot be null
exception error heap, max-heap, null-check, constructor
Index ${elementIndex} is out of heap range [1, ${maxHeap.siz
exception error heap, max-heap, index-out-of-bounds, one-based-index
Cannot extract from an empty heap
exception error heap, max-heap, empty-state, checked-exception
Cannot insert null element
exception error heap, max-heap, null-check, insert
Cannot delete from an empty heap
exception error heap, max-heap, empty-state, checked-exception, delete
Input list cannot be null
exception error heap, min-heap, null-check, constructor
Index ${elementIndex} is out of heap range [1, ${minHeap.siz
exception error heap, min-heap, index-out-of-bounds, one-based-index
Cannot extract from empty heap
exception error heap, empty-state, data-structure, precondition, java
Cannot insert null element
exception error heap, null-check, data-structure, precondition, java
Cannot delete from empty heap
exception error heap, empty-state, data-structure, precondition, java
MinPriorityQueue is full. Cannot insert new element.
exception error priority-queue, capacity, data-structure, bounded, java
MinPriorityQueue is empty. Cannot peek.
exception error priority-queue, empty-state, data-structure, precondition, java
MinPriorityQueue is empty. Cannot delete.
exception error priority-queue, empty-state, data-structure, precondition, java
Cannot add null element to the list
exception error linked-list, null-check, data-structure, precondition, java
Position out of bounds
exception error linked-list, index-out-of-bounds, data-structure, off-by-one, java
Cannot add null element to the list
exception error linked-list, null-check, data-structure, precondition, java
Position out of bounds
exception error linked-list, index-out-of-bounds, data-structure, off-by-one, java
Element cannot be null
exception error linked-list, null-check, data-structure, precondition, java
Index: ${index}, Size: ${size}
exception error linked-list, index-out-of-bounds, data-structure, off-by-one, java
The element to be deleted does not exist!
exception error linked-list, not-found, data-structure, java
Input lists and result collection must not be null.
exception error merge, null-check, data-structure, precondition, java
Input lists must not be null.
exception error merge, linked-list, null-check, data-structure, precondition, java
${position}
exception error linked-list, index-out-of-bounds, data-structure, off-by-one, java
Probability should be from 0 to 1. But was: ${probability}
exception error skip-list, invalid-argument, data-structure, config, java
Size must be greater than 0
exception error queue, capacity, data-structure, invalid-argument, config, java
Queue is full
exception error queue, data-structure, capacity, bounded-queue, java
Queue is empty
exception error queue, data-structure, underflow, empty-state, java
Deque is empty
exception error deque, data-structure, underflow, empty-state, api-convention, java
Cannot enqueue null data
exception error queue, data-structure, null-check, input-validation, java
Queue is empty
exception error queue, data-structure, underflow, empty-state, java
Queue is full
exception error priority-queue, data-structure, capacity, bounded-queue, heap, runtime-exception, java
Queue is Empty
exception error priority-queue, data-structure, underflow, empty-state, heap, runtime-exception, java
Queue capacity must be greater than 0
exception error queue, data-structure, constructor, capacity, input-validation, java
Queue is empty, cannot remove element
exception error queue, data-structure, underflow, empty-state, java
Queue is empty, cannot peek front
exception error queue, data-structure, underflow, empty-state, java
Queue is empty, cannot peek rear
exception error queue, data-structure, underflow, empty-state, java
Queue is empty
exception error queue, data-structure, underflow, empty-state, two-stacks, java
Capacity must be greater than zero.
exception error queue, data-structure, concurrency, constructor, capacity, input-validation, java
Cannot enqueue null item.
exception error queue, data-structure, concurrency, null-check, input-validation, java
Cannot pop from an empty stack.
exception error stack, empty-state, java, datastructures
Cannot peek from an empty stack.
exception error stack, empty-state, java, datastructures
Stack cannot be null
exception error stack, null-argument, java, datastructures, precondition
Stack size must be greater than 0
exception error stack, invalid-argument, java, datastructures, constructor
Stack is empty, cannot pop element
exception error stack, empty-state, java, datastructures
Stack is empty, cannot peek element
exception error stack, empty-state, java, datastructures
Empty stack. Nothing to pop
exception error stack, empty-state, java, datastructures, linked-list
Empty stack. Nothing to peek
exception error stack, empty-state, java, datastructures, linked-list
Tree cannot be empty or null
exception error tree, null-argument, java, datastructures, centroid-decomposition, precondition
Invalid node: {}
exception error tree, invalid-argument, java, datastructures, indexing, centroid-decomposition
Number of nodes must be positive
exception error tree, invalid-argument, java, datastructures, centroid-decomposition, precondition
Edges cannot be null
exception error tree, null-argument, java, datastructures, centroid-decomposition, precondition
Tree must have exactly n-1 edges
exception error tree, invalid-argument, java, datastructures, centroid-decomposition, graph-invariant
Each edge must have exactly 2 nodes
exception error tree, invalid-argument, java, datastructures, centroid-decomposition, data-format
Invalid node in edge: [{}, {}]
exception error tree, invalid-argument, java, datastructures, centroid-decomposition, indexing
Points array cannot be empty
exception error tree, invalid-argument, java, datastructures, kdtree, empty-state
Points must have the same dimension
exception error tree, invalid-argument, java, datastructures, kdtree, dimension
Point has wrong dimension
exception error tree, invalid-argument, java, datastructures, kdtree, dimension
Cannot delete from an empty tree
exception error splay-tree, empty-state, input-validation, java
Duplicate key: {key}
exception error splay-tree, duplicate-key, input-validation, java
Input arrays are not sorted
validation error median, sorted-arrays, precondition, divide-and-conquer, java
Input strings must not be null.
validation error string-distance, null-check, input-validation, java
Input n must be non-negative
validation error fibonacci, negative-input, input-validation, java
Weight capacity should not be negative.
validation error knapsack, negative-capacity, input-validation, java
Weights and values must be non-null and of the same length.
validation error knapsack, array-mismatch, null-check, input-validation, java
Weights must be positive.
validation error knapsack, non-positive-weight, input-validation, java
Input arrays cannot be null.
validation error knapsack, null-check, input-validation, java
Value and weight arrays must be of the same length.
validation error knapsack, array-mismatch, input-validation, java
Invalid input: arrays must be non-empty and capacity/n non-n
validation error knapsack, negative-input, input-validation, java
Values and weights arrays must not be null.
validation error knapsack, null-check, input-validation, java
Values and weights arrays must be non-null and of same lengt
validation error knapsack, array-mismatch, input-validation, java
Capacity must not be negative.
validation error knapsack, negative-capacity, input-validation, java
Item count must be between 0 and the length of the values ar
validation error knapsack, out-of-bounds, input-validation, java
Input array cannot be null
validation error arithmetic-subsequence, null-check, input-validation, java
Input string must not be null
validation error null-check, string, dynamic-programming, input-validation
Input array should not contain negative number(s).
validation error input-validation, array, dynamic-programming, negative-values
Input strings must not be null.
validation error null-check, string, dynamic-programming, sequence-alignment
Keys and frequencies cannot be null
validation error null-check, array, dynamic-programming, input-validation
Keys and frequencies must have the same length
validation error input-validation, array, length-mismatch, dynamic-programming
Frequencies cannot be negative
validation error input-validation, array, negative-values, dynamic-programming
Keys must be distinct
validation error input-validation, duplicate-keys, dynamic-programming, bst
Price array cannot be null or empty.
validation error null-check, array, dynamic-programming, input-validation
Rod length cannot be negative.
validation error input-validation, negative-values, dynamic-programming
Input strings must not be null.
validation error null-check, string, dynamic-programming, sequence-alignment
Invalid root: {root}
validation error input-validation, index-out-of-bounds, graph, dynamic-programming
Utility class
exception warning utility-class, reflection, instantiation, design
Input array cannot be null or empty.
validation error null-check, array, dynamic-programming, input-validation
Segment list must not be null
validation error null-check, geometry, input-validation, list
Adjacency list must not be null
validation error null-check, graph, input-validation, list
Adjacency list must not contain null sets
validation error null-check, graph, input-validation, list
Neighbor index out of bounds: {v}
validation error input-validation, index-out-of-bounds, graph
Capacity matrix must not be null or empty
validation error null-check, graph, input-validation, matrix
Capacity matrix must be square
validation error input-validation, matrix, graph, square-matrix
Capacities must be non-negative
validation error input-validation, negative-values, graph, matrix
Source and sink must be valid vertex indices
validation error graph-algorithm, argument-validation, index-bounds, max-flow
Invalid number of vertices or root
validation error graph-algorithm, argument-validation, index-bounds, minimum-spanning-arborescence
Capacity matrix must not be null or empty
validation error graph-algorithm, argument-validation, null-check, max-flow
Capacity matrix must be square
validation error graph-algorithm, argument-validation, matrix-shape, max-flow
Capacities must be non-negative
validation error graph-algorithm, argument-validation, value-constraint, max-flow
Source and sink must be valid vertex indices
validation error graph-algorithm, argument-validation, index-bounds, max-flow
Capacity matrix must not be null or empty
validation error graph-algorithm, argument-validation, null-check, gomory-hu-tree
Capacity matrix must be square
validation error graph-algorithm, argument-validation, matrix-shape, gomory-hu-tree
Capacities must be non-negative
validation error graph-algorithm, argument-validation, value-constraint, gomory-hu-tree
Cost matrix must not be null or empty
validation error graph-algorithm, argument-validation, null-check, assignment-problem
Cost matrix must have at least 1 column
validation error graph-algorithm, argument-validation, matrix-shape, assignment-problem
Cost matrix must be rectangular with equal row lengths
validation error graph-algorithm, argument-validation, matrix-shape, assignment-problem
Costs must be non-negative
validation error graph-algorithm, argument-validation, value-constraint, assignment-problem
successors must not be null
validation error graph-algorithm, argument-validation, null-check, dfs
successors and predecessors must not be null
validation error graph-algorithm, argument-validation, null-check, dfs
Capacity matrix must not be null or empty
validation error graph-algorithm, argument-validation, null-check, max-flow, push-relabel
Capacity matrix must be square
validation error graph-algorithm, argument-validation, matrix-shape, max-flow, push-relabel
Capacities must be non-negative
validation error graph-algorithm, argument-validation, value-constraint, max-flow, push-relabel
Source and sink must be valid vertex indices
validation error graph-algorithm, argument-validation, index-bounds, max-flow, push-relabel
vertexCount must be non-negative
validation error graph-algorithm, argument-validation, value-constraint, bridge-finding
adjacencyList size must equal vertexCount
validation error graph, validation, argument-mismatch, tarjan, adjacency-list
Matrix must be square
validation error graph, validation, matrix, tsp, ragged-array
Weights matrix must not be null or empty
validation error graph, validation, null-check, empty-input, yens
Weights matrix must be square
validation error graph, validation, matrix, null-check, ragged-array, yens
Weights must be -1 (no edge) or >= 0
validation error graph, validation, sentinel, negative-weight, yens, dijkstra
k must be >= 1
validation error graph, validation, argument-range, yens, k-shortest-paths
Empty or already closed stream provided
exception error io, stream, constructor, closed-stream, buffered-reader
Out of range, available %d, but trying with %d
exception error io, stream, peek, eof, buffered-reader, bounds-check
Cannot peek %s, maximum upto %s (Buffer Limit)
exception error io, stream, peek, buffer-limit, buffered-reader, illegal-access-error
Input Stream already closed!
exception error io, stream, use-after-close, lifecycle, buffered-reader, illegal-state
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
alpha must be greater than 0
validation error machine-learning, validation, argument-range, naive-bayes, smoothing
features and labels must be non-empty and of equal length
validation error machine-learning, validation, empty-input, argument-mismatch, naive-bayes
classifier has not been fitted
exception error machine-learning, lifecycle, state-error, not-fitted, naive-bayes, illegal-state
sample length must match training feature count
validation error machine-learning, validation, dimensionality-mismatch, naive-bayes, feature-vector
Denominator cannot be 0
validation error math, validation, division-by-zero, fraction, record, constructor
Numbers array cannot be empty or null
validation error math, validation, null-check, empty-input, varargs, absolute-max
Numbers array cannot be empty or null
validation error validation, varargs, maths, precondition, illegal-argument
Number must be positive.
validation error validation, maths, precondition, positive-number, illegal-argument
Given range of values is invalid!
validation error validation, maths, precondition, range, illegal-argument
Input numbers must be natural!
validation error validation, maths, precondition, positive-number, illegal-argument
Side length must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Length must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Width must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Height must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Radius must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
slant height must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Side Length must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Base must be greater than 0
validation error validation, maths, geometry, precondition, illegal-argument
Base must be greater than 01
validation error geometry, input-validation, area, java, string-concatenation-bug
Base must be greater than 02
validation error geometry, input-validation, area, java, string-concatenation-bug
This is a utility class and cannot be instantiated.
validation error utility-class, reflection, instantiation, java, design-pattern
Numbers array cannot be empty or null
validation error input-validation, null-check, empty-array, average, java
n must be non-negative
validation error combinatorics, input-validation, bell-numbers, java
n must be <= 25. For larger n, use BigInteger implementation
validation error combinatorics, overflow, bell-numbers, input-validation, bigint, java
Index must be non-negative
validation error combinatorics, input-validation, catalan-numbers, java
Matrix A cannot be empty.
validation error linear-algebra, input-validation, matrix, chebyshev-iteration, java
Matrix A must be square.
validation error linear-algebra, input-validation, matrix, square-matrix, chebyshev-iteration, java
Matrix A and vector b dimensions do not match.
validation error linear-algebra, input-validation, dimension-mismatch, vector, chebyshev-iteration, java
Matrix A and vector x0 dimensions do not match.
validation error linear-algebra, input-validation, dimension-mismatch, vector, chebyshev-iteration, java
Smallest eigenvalue must be positive (matrix must be positiv
validation error linear-algebra, input-validation, eigenvalues, positive-definite, chebyshev-iteration, java
Max eigenvalue must be strictly greater than min eigenvalue.
validation error linear-algebra, input-validation, eigenvalues, argument-order, chebyshev-iteration, java
Max iterations must be positive.
validation error linear-algebra, input-validation, iterations, chebyshev-iteration, java
Tolerance must be positive.
validation error validation, numerical-methods, linear-algebra, precondition
Must be a natural number
validation error validation, number-theory, precondition, domain-error
number is negative
validation error validation, number-theory, precondition, recursion
n or k can't be negative
validation error validation, combinatorics, precondition
n can't be smaller than k
validation error validation, combinatorics, argument-order, precondition
Invalid complex number format: {num}
validation error validation, parsing, complex-numbers, regex, input-format
Input must be a positive integer.
validation error validation, number-theory, precondition, domain-error
Input must me positive.
validation error validation, number-theory, precondition, domain-error
stepSize should be greater than zero
validation error validation, numerical-methods, ode, precondition
xEnd should be greater than xStart
validation error validation, numerical-methods, ode, precondition
n must be positive and odd.
validation error validation, number-theory, cryptographic, precondition
n must be positive.
validation error validation, number-theory, precondition, domain-error
Negative numbers are not allowed.
validation error validation, number-theory, bit-manipulation, precondition
Input number cannot be negative
validation error validation, number-theory, precondition
Modulus must be positive.
validation error validation, number-theory, modular-arithmetic, cryptographic, precondition
Negative exponent is not supported.
validation error arithmetic, number-theory, modular-arithmetic, cryptographic, unsupported-operation
Input index cannot be null or negative!
validation error validation, null-safety, sequences, precondition
Input 'n' must be a non-negative integer.
validation error validation, sequences, precondition
Input 'n' must be a non-negative integer.
validation error validation, sequences, precondition, numerical-methods
Input 'n' is too big to give accurate result.
validation error math, fibonacci, floating-point, argument-validation
k must be between 1 and the size of the array
validation error math, quickselect, array, argument-validation
Array must be non-empty.
validation error math, array, empty-collection, argument-validation
Array must be non-empty.
validation error math, array, recursion, divide-and-conquer, empty-collection, argument-validation
Array must be non-empty.
validation error math, array, empty-collection, argument-validation
array must be non-empty.
validation error math, array, recursion, divide-and-conquer, empty-collection, argument-validation
Input value must be a positive integer. Input value: {number
validation error math, prime, argument-validation, positive-integer
Number must be even and greater than 2.
validation error math, goldbach, prime, argument-validation, parity
No valid prime sum found.
exception critical math, goldbach, prime, illegal-state, defensive-guard, unreachable
Input must be a positive integer. Received: {n}
validation error math, harshad, number-theory, argument-validation, positive-integer
Input string cannot be null or empty
validation error math, harshad, string-parsing, null-check, argument-validation
Input string must be a valid integer: {s}
validation error math, harshad, string-parsing, number-format, argument-validation
All side lengths must be positive
validation error math, geometry, herons-formula, argument-validation, triangle
Triangle cannot be formed with the given side lengths (viola
validation error math, geometry, herons-formula, triangle-inequality, argument-validation
Input must be non-negative!
validation error math, jacobsthal, sequence, argument-validation, non-negative
Start must be less than or equal to end. Given start: {start
validation error math, kaprekar, range, argument-validation
Start must be non-negative. Given start:
exception error math, kaprekar, range, argument-validation, non-negative
Number must be non-negative. Given:
exception error math, validation, illegal-argument, number-theory
Number must be positive
exception error math, validation, illegal-argument, number-theory
Input must be non-negative. Received:
exception error math, validation, illegal-argument, recursion
Base must be greater than 1.
exception error math, validation, illegal-argument, number-theory
Number must be non-negative.
exception error math, validation, illegal-argument, number-theory
Input must be a positive integer. Provided:
exception error math, validation, illegal-argument, recursion
Number must be positive.
exception error math, validation, illegal-argument, number-theory
Cannot convert NaN to long!
exception warning math, nan, swallowed-exception, builder, code-smell
Number must be zero for random assignment!
exception error math, builder, runtime-exception, state-validation
Number must be zero for PI assignment!
exception error math, builder, runtime-exception, state-validation
Number must be zero for E assignment!
exception error math, builder, runtime-exception, state-validation
Number must be zero to set!
exception error math, builder, runtime-exception, state-validation
Empty list given for Mean computation.
exception error math, validation, illegal-argument, statistics, empty-collection
Values array cannot be empty or null
exception error math, validation, illegal-argument, statistics, null-check
x and y arrays must have the same length.
exception error math, validation, illegal-argument, interpolation, array-length
Input arrays cannot be empty.
exception error math, validation, illegal-argument, interpolation, empty-array
Input x-coordinates must be unique.
exception error math, interpolation, invalid-argument, duplicate-values
Array should contain an even number of elements
exception error math, bit-manipulation, invalid-argument, array-length
baseNumbers must be non-empty.
exception error math, sequence, invalid-argument, empty-array
n must be non-negative.
exception error math, sequence, invalid-argument, negative-index
multiplicativePersistence() does not accept negative values
exception error math, persistence, invalid-argument, negative-value
additivePersistence() does not accept negative values
exception error math, persistence, invalid-argument, negative-value
Input must be non-negative. Received:
exception error math, sequence, invalid-argument, negative-index
Input parameter must not be negative!
exception error math, palindrome, invalid-argument, negative-value
Input parameter must not be null!
exception error math, parsing, null-argument, number-format
Input parameter must not be empty!
exception error math, parsing, empty-string, number-format
Input parameter of incorrect format:
exception error math, parsing, invalid-format, number-format
Input must be non-negative!
exception error math, sequence, invalid-argument, negative-index
No instances.
exception error math, utility-class, instantiation, reflection
Please input Integer Number between 0 and 500
exception error math, pi, invalid-argument, out-of-range
GCD cannot be found.
exception error math, factorization, algorithm-failure, prime-input
Exponent must be non-negative.
exception error math, exponentiation, invalid-argument, negative-exponent
Number must be greater than zero.
exception error math, number-theory, invalid-argument, non-positive
Number must be greater than zero.
exception error math, number-theory, invalid-argument, non-positive
Number must be greater than zero.
exception error math, number-theory, invalid-argument, non-positive
number must be nonnegative.
exception error math, reverse, invalid-argument, negative-value
The number must be in the range [%d, %d]
exception error math, roman-numerals, input-validation, argument-validation
Input array must have length of at least two
exception error math, array, input-validation, argument-validation
Input array should have at least 2 distinct elements
exception error math, array, distinct-values, argument-validation
Input must be non-negative
exception error math, primes, sieve, input-validation
numOfTerms nonnegative.
exception error math, series, input-validation, argument-validation
n must be non-negative.
exception error math, odd-numbers, input-validation, argument-validation
Input must be non-negative
exception error math, number-theory, input-validation, argument-validation
Input date must be 10 characters long in the format MM-DD-YY
exception error date, zellers-congruence, format-validation, argument-validation
Invalid date.
exception error date, zellers-congruence, calendar, argument-validation
Month must be between 1 and 12.
exception error date, zellers-congruence, range-validation, argument-validation
Day must be between 1 and 31.
exception error date, zellers-congruence, range-validation, argument-validation
Year must be between 46 and 8499.
exception error date, zellers-congruence, range-validation, argument-validation
Invalid numeric part: {part}
exception error date, zellers-congruence, parse-error, format-validation
Date separator must be '-' or '/'.
exception error date, zellers-congruence, format-validation, delimiter
Input matrices cannot be null
exception error matrix, linear-algebra, null-check, argument-validation
Input matrices must not be empty
exception error matrix, linear-algebra, empty-check, argument-validation
Matrices cannot be multiplied: incompatible dimensions.
exception error matrix, linear-algebra, dimension-mismatch, argument-validation
Matrix is empty
exception error matrix, transpose, empty-check, argument-validation, doc-mismatch
Matrix must contain at least one element.
exception error matrix, median, empty-check, argument-validation
Matrix is rank deficient. Cannot perform QR decomposition.
exception error matrix, linear-algebra, qr-decomposition, rank-deficient, gram-schmidt
The input matrix cannot be null
exception error matrix, null-check, precondition, linear-algebra
The input matrix cannot be empty
exception error matrix, precondition, empty-input, linear-algebra
The input matrix cannot have null or empty rows
exception error matrix, precondition, null-row, linear-algebra
The input matrix cannot be jagged
exception error matrix, precondition, jagged-array, linear-algebra
Matrix was found to be singular
exception error matrix, singular, linear-algebra, gaussian-elimination, numerical
Matrix must not be null or empty
exception error matrix, null-check, precondition, stochastic, markov
The input matrix cannot be null
exception error matrix, null-check, precondition, linear-algebra
The input matrix cannot be empty
exception error matrix, precondition, empty-input, linear-algebra
The input matrix cannot have null or empty rows
exception error matrix, precondition, null-row, linear-algebra
The input matrix cannot be jagged
exception error matrix, precondition, jagged-array, linear-algebra
Median is undefined for an empty data set.
exception warning median, streaming, precondition, heap, statistics
Input array must not be null
exception error array, null-check, precondition, shuffle, fisher-yates
Matrix cannot be null or empty
exception error matrix, null-check, precondition, sparsity, statistics
Invalid input
exception error array, precondition, rotation, null-check
Input '{input}' contains not only digits
exception error checksum, validation, damm, input-validation, string
Character array and frequency array cannot be null
exception error huffman, null-check, precondition, compression, tree
Character array and frequency array cannot be empty
exception error huffman, precondition, empty-input, compression, tree
Character array and frequency array must have the same lengt
exception error huffman, precondition, length-mismatch, compression, tree
Frequencies must be non-negative
exception error huffman, precondition, validation, negative-value, compression
Array cannot be null
exception error array, null-check, precondition, insert
Position must be between 0 and {array.length}
exception error validation, array, input-validation, off-by-one
Array is empty
validation error validation, array, input-validation, empty-state
Position must be between 0 and + (array.length - 1)
validation error validation, array, input-validation, off-by-one
imageWidth should be greater than zero
validation error validation, graphics, image, input-validation
{" + cardNumber + "} - is not a card number
validation error validation, luhn, credit-card, input-validation, format
Credit card number {" + cardNumber + "} - have a typo
validation error validation, luhn, credit-card, checksum, input-validation
imageWidth should be greater than zero
validation error validation, graphics, image, fractal, input-validation
imageHeight should be greater than zero
validation error validation, graphics, image, fractal, input-validation
maxStep should be greater than zero
validation error validation, graphics, fractal, iteration, input-validation
The number of scores must be a power of 2.
validation error validation, minimax, game-tree, input-validation, power-of-two
Number of nodes must be between 1 and + MAX_NODES
validation error validation, pagerank, graph, input-validation, capacity
Node index out of bounds
validation error validation, pagerank, indexing, input-validation, off-by-one
Total nodes must be between 1 and + MAX_NODES
validation error validation, pagerank, graph, input-validation, capacity
Damping factor must be between 0 and 1
validation error validation, pagerank, input-validation, range, numeric
Iterations must be at least 1
validation error validation, pagerank, iteration, input-validation
Incorrect length parameters: minLength must be <= maxLength
validation error validation, password, security, input-validation, range
width and height must be > 0
validation error validation, perlin-noise, procedural-generation, input-validation, array
octaveCount must be >= 1
validation error validation, perlin-noise, procedural-generation, input-validation, iteration
persistence must be in (0, 1]
validation error java, parameter-validation, procedural-generation, noise, illegal-argument
Input array must not be null.
validation error java, null-check, two-pointers, precondition, illegal-argument
Input '" + input + "' contains not only digits
validation error java, input-validation, checksum, verhoeff, regex, illegal-argument
Orbiting mass and radius must be positive.
validation error java, physics, parameter-validation, orbital-mechanics, illegal-argument
Natural frequency must be positive.
validation error java, physics, parameter-validation, oscillator, constructor, illegal-argument
Damping coefficient must be non-negative.
validation error java, physics, parameter-validation, oscillator, constructor, illegal-argument
State must be a non-null array of length 2.
validation error java, physics, parameter-validation, numerical-integration, state-vector, illegal-argument
Time step must be positive.
validation error java, physics, parameter-validation, numerical-integration, time-step, illegal-argument
Mass and radius must be positive.
validation error java, physics, parameter-validation, orbital-mechanics, gravity, illegal-argument
Velocity, height, and gravity must be non-negative, and grav
validation error java, physics, parameter-validation, projectile-motion, illegal-argument
Speed must be lower than the speed of light
validation error java, physics, relativity, parameter-validation, unit-mismatch, illegal-argument
Length must be non-negative
validation error java, physics, relativity, parameter-validation, illegal-argument
Time must be non-negative
validation error java, physics, relativity, parameter-validation, illegal-argument
Speed must not exceed the speed of light
validation error java, physics, relativity, parameter-validation, unit-mismatch, illegal-argument
Frame speed must be lower than the speed of light
validation error java, physics, relativity, parameter-validation, unit-mismatch, illegal-argument
Length must be positive
validation error java, physics, parameter-validation, pendulum, constructor, illegal-argument
Gravity must be positive
exception error java, physics, parameter-validation, pendulum, constructor, illegal-argument
State must be array of length 2
exception error java, physics, parameter-validation, numerical-integration, rk4, state-vector, illegal-argument
Time step must be positive
exception error java, physics, parameter-validation, numerical-integration, rk4, time-step, illegal-argument
Total internal reflection: no refraction possible.
exception warning java, physics, optics, snells-law, total-internal-reflection, illegal-argument
Focal length and object distance must be non-zero.
exception error physics, input-validation, illegal-argument, thin-lens
Object distance must be non-zero.
exception error physics, input-validation, illegal-argument, divide-by-zero, thin-lens
Input array cannot be null or empty.
exception error prefix-sum, input-validation, illegal-argument, data-structure
Invalid range: [%d, %d] for array of size %d
exception error prefix-sum, input-validation, illegal-argument, off-by-one, data-structure
Input array cannot be null
exception error prefix-sum, input-validation, illegal-argument, null-check
Invalid range indices
exception error prefix-sum, input-validation, index-out-of-bounds, off-by-one
Input matrix cannot be null or empty
exception error prefix-sum, input-validation, illegal-argument, matrix, null-check
Invalid row indices
exception error prefix-sum, input-validation, index-out-of-bounds, matrix, off-by-one
Invalid column indices
exception error prefix-sum, input-validation, index-out-of-bounds, matrix, off-by-one
Input array cannot be null
exception error prefix-sum, input-validation, illegal-argument, null-check, static-utility
Prefix sum array cannot be null
exception error prefix-sum, input-validation, illegal-argument, null-check, static-utility
Invalid range indices
exception error prefix-sum, input-validation, illegal-argument, off-by-one, api-inconsistency
Input array cannot be null
exception error prefix-sum, input-validation, illegal-argument, null-check, hashmap
Number of discs must be non-negative
exception error puzzles, recursion, input-validation, illegal-argument
Invalid input parameters
exception error randomized, monte-carlo, input-validation, illegal-argument, generic-message
Sample size cannot exceed stream size.
exception error randomized, input-validation, illegal-argument, reservoir-sampling, sampling
Target must be non-negative
exception error recursion, input-validation, illegal-argument, backtracking
number is negative
exception error recursion, input-validation, illegal-argument, factorial, overflow-risk
n must be a non-negative integer
exception error recursion, input-validation, illegal-argument, fibonacci, overflow-risk
sylvester() does not accept negative numbers or zero.
exception error math, recursion, input-validation, argument-validation
Input array must not be empty.
exception error search, input-validation, empty-collection
Input array must be sorted.
exception error search, precondition, sorted-input, input-validation
Key must not be null.
exception error search, nullable, input-validation, null-check
The list of elements must not be empty.
exception error selection, empty-collection, input-validation
The index must not be negative.
exception error selection, index-out-of-bounds, off-by-one, input-validation
The index must be less than the number of elements.
exception error selection, index-out-of-bounds, off-by-one, input-validation
Array is empty
exception error search, matrix, empty-collection, input-validation
Array cannot be null
exception error search, nullable, null-check, input-validation
Invalid input
exception error sliding-window, input-validation, config, null-check
BeadSort cannot sort negative numbers.
exception error sorting, non-negative-domain, input-validation
The input array cannot be null
exception error sorting, nullable, null-check, input-validation
Classification ratio must be between 0 and 1 (exclusive).
exception error sorting, config, range-validation, constructor
Input array must not be null.
exception error sorting, nullable, null-check, input-validation
Implementation cannot sort negative numbers.
exception error sorting, non-negative-domain, input-validation
Array contains negative integers.
exception error sorting, non-negative-domain, input-validation
Array contains non-positive integers.
exception error sorting, non-negative-domain, input-validation, misleading-message
Insertion sort threshold must be between 1 and 1000
exception error sorting, config, range-validation, constructor
Initial bucket capacity must be between 1 and 1000
exception error sorting, config, range-validation, constructor
Minimum number of buckets must be between 1 and 100
exception error sorting, bucket-sort, constructor, validation, illegalargument
This graph contains a cycle. No linear ordering is possible.
exception error topological-sort, graph, cycle-detection, dfs, runtime-exception
For odd Arrays if the median appears ceil(n/2) times, the me
exception error sorting, wiggle-sort, median, validation, illegalargument
No more than half the number of values may be the same.
exception error sorting, wiggle-sort, duplicates, validation, illegalargument
brackets is null
exception error stacks, brackets, null-check, validation, illegalargument
Number must be non-negative.
exception error conversion, radix, validation, illegalargument, number-format
Invalid radix: %d. Radix must be between 2 and 16.
exception error conversion, radix, validation, illegalargument, bounds
Input expression cannot be null.
exception error stacks, brackets, null-check, validation, illegalargument
Stack is empty
exception error stacks, empty-stack, validation, nosuchelement, underflow