TheAlgorithms/Python
Documented errors, page 6 of 7. Back to TheAlgorithms/Python
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| abs_min() arg is an empty sequence | exception | error | math, sequence, input-validation |
| area_trapezium() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| Divisor a must be a positive integer | exception | error | math, number-theory, valueerror, modular-arithmetic |
| Input must be of length 32 | exception | error | md5, hash, validation, endianess, internal-api |
| In Malus Law, the angle is in the range 0-360 degrees | validation | error | physics, optics, polarization, angle-range, valueerror |
| Input must have length that's a multiple of 512 | exception | error | md5, hash, validation, padding, internal-api |
| Purchase value cannot be less than zero | validation | error | finance, input-validation, valueerror |
| Purchase value must be numeric | validation | error | finance, type-checking, typeerror |
| Both input arrays are empty. | exception | error | value-validation, array, median, statistics |
| Input must be non-negative | exception | error | md5, hash, validation, unsigned, internal-api |
| iterations must be defined as integers | exception | error | python, input-validation, type-error, dynamic-programming |
| Height of grid can't be 0 or negative | exception | error | rail-fence, transposition, key-validation, validation |
| Input value of [ ] must be > 0 | exception | error | math, valueerror, input-validation, proth |
| Missing an input | exception | error | math, valueerror, empty-input, distance-metrics |
| Atmospheric Pressure can not be negative ! | validation | error | physics, pressure, sensor-data, range-check |
| Digit position must be a positive integer | exception | error | math, bbp, pi, input-validation |
| Electron concentration cannot be negative in a semiconductor | validation | error | electronics, semiconductor, physics, validation, sign-error |
| Incorrect 'from_type' or 'to_type' value | exception | error | python, validation, units, speed, conversion |
| num_cuts must be a positive numeric value. | validation | error | geometry, input-validation, user-input |
| a bytes-like object is required, not | exception | error | base64, type-error, encoding, validation |
| All days elements should be less than 366 | validation | error | dynamic-programming, input-validation, calendar |
| ciphertext must be a string | exception | error | cipher, type-error, python |
| find_min_recursive() arg is an empty sequence | exception | error | math, min, recursion, empty-sequence, valueerror |
| Input values except axis must either be float or int | validation | error | graphics, type-validation, rotation |
| remove_first from empty list | exception | error | deque, index-error, empty-collection, pop |
| surface_area_cone() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| Constant matrix must be nx1 but received | exception | error | linear-algebra, jacobi, numpy, validation, matrix-shape |
| Impossible object volume | validation | error | physics, buoyancy, argument-validation, range-check |
| List is empty | exception | error | deque, empty-collection, peek, python |
| Mass can not be negative | exception | error | physics, validation, negative-value, mass, valueerror |
| Tableau must have type float64 | validation | error | linear-programming, simplex, numpy, dtype, typeerror |
| Unknown kernel | exception | error | machine-learning, svm, configuration, enum-validation |
| base64 encoded data should only contain ASCII characters | exception | error | base64, decoding, unicode, validation |
| find_max_recursive() arg is an empty sequence | exception | error | math, max, recursion, empty-sequence, valueerror |
| Invalid weight of provided | exception | error | scoring, argument-validation, weights |
| empty number list not allowed | exception | error | value-validation, sparse-table, rmq, empty-input |
| Invalid public key | exception | error | diffie-hellman, key-exchange, security, validation |
| Wrong input data's shape... dataset | exception | error | numpy, input-validation, similarity-search |
| Number should not be negative. | exception | error | python, input-validation, recursion, math |
| The parameter idx_original_string must be lower than… | exception | error | value-validation, burrows-wheeler, index, off-by-one |
| Useful years cannot be less than 1 | validation | error | finance, input-validation, valueerror |
| Invalid value for min_val or max_val (min_value < max_value) | exception | error | argument-validation, range-check, game |
| binary_search_delete() only accepts either a list, range or… | exception | error | type-validation, binary-search, input-validation |
| find_min_iterative() arg is an empty sequence | exception | error | math, min, empty-sequence, valueerror |
| First rotor position is not within range of 1..26 | exception | error | enigma, rotor-position, off-by-one, validation |
| n is negative | exception | error | math, fibonacci, generator, negative-value, valueerror |
| prob has to be in range of 1 - 0 | exception | error | math, probability, statistics, input-validation |
| vol_cone() only accepts non-negative values | exception | error | math, validation, geometry, valueerror |
| mod inverse of and does not exist | exception | error | modular-arithmetic, rsa, math, validation |
| number must be positive | exception | error | bit-manipulation, validation, python |
| Conductivity cannot be negative | validation | error | electronics, semiconductor, physics, validation, sign-error |
| Decision tree not yet trained | validation | error | machine-learning, decision-tree, state-error, predict-before-fit |
| find_max_iterative() arg is an empty sequence | exception | error | math, max, empty-sequence, valueerror |
| surface_area_hemisphere() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| abs_max_sort() arg is an empty sequence | exception | error | math, sequence, input-validation |
| 'time_value' must be a non-negative number. | exception | error | python, validation, units, time, conversion |
| Inductance must be positive. | validation | error | electronics, rl-circuit, physics, validation, unit-error |
| input must be a negative integer | validation | error | bit-manipulation, input-validation, python |
| Invalid range specified. | exception | error | value-validation, prefix-sum, range-query, off-by-one |
| No data matching given value | exception | error | linked-list, value-error, delete, membership |
| mobility cannot be negative | validation | error | electronics, semiconductor, physics, validation, sign-error |
| The board should be a non empty matrix of single chars… | validation | error | physics, input-validation, division-by-zero |
| Both arguments MUST be non-negative! | validation | error | bit-manipulation, input-validation, recursion, python |
| Input must be positive | exception | error | math, number-theory, input-validation |
| Data set labels must be one-dimensional | validation | error | machine-learning, decision-tree, shape-mismatch, numpy |
| vol_cuboid() only accepts non-negative values | exception | error | math, validation, geometry, valueerror |
| Precision must be a nonnegative integer | exception | error | math, bbp, pi, input-validation |
| key is empty | exception | error | cipher, validation, python |
| vol_cube() only accepts non-negative values | exception | error | math, geometry, valueerror, input-validation, volume |
| Expected a string as input | exception | error | python, type-error, conversion, numeral-system |
| Expected int of the range 0..255 | exception | error | python, validation, range, color, conversion |
| Exponent must be a non-negative integer | exception | error | math, exponentiation, input-validation |
| The parameter idx_original_string must not be lower than 0. | exception | error | value-validation, burrows-wheeler, index, compression |
| UNDERFLOW | exception | error | queue, underflow, circular-buffer, empty-collection |
| plaintext is empty | exception | error | cipher, validation, python |
| Tangential Force cannot be negative | exception | error | physics, validation, negative-value, valueerror |
| Empty Queue | exception | error | queue, empty-collection, generic-exception, circular-buffer |
| guess value must be within the range of lower and higher… | exception | error | argument-validation, range-check, game |
| number of (artificial) variables must be a natural number | validation | error | linear-programming, simplex, argument-validation |
| Electron concentration cannot be negative | validation | error | electronics, semiconductor, physics, validation, sign-error |
| saturation should be between 0 and 1 | exception | error | python, validation, range, color, conversion |
| The length of the two arrays should be the same. | exception | error | machine-learning, loss-function, metrics, time-series |
| y_true can have values -1 or 1 only. | exception | error | machine-learning, loss-function, svm, label-encoding |
| ciphertext is empty | exception | error | cipher, validation, python |
| Inductive reactance cannot be negative | exception | error | electronics, validation, reactance, valueerror |
| plaintext must be a string | exception | error | cipher, type-error, python |
| next_side must be a Side or None. | validation | error | geometry, type-validation, dataclass |
| Resistance must be positive. | validation | error | electronics, rc-circuit, physics, validation, sign-error |
| Sentence length of y_true and y_pred must be equal. | exception | error | machine-learning, loss-function, nlp, padding |
| abs_max() arg is an empty sequence | exception | error | math, sequence, input-validation |
| Capacitance must be positive. | validation | error | electronics, rc-circuit, physics, validation, unit-error |
| Mass can't be negative. | exception | error | physics, relativity, input-validation, valueerror |
| area_circle() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| n and r must be non-negative integers | exception | error | math, combinatorics, input-validation |
| both inputs must be positive integers | validation | error | bit-manipulation, input-validation, python |
| Frequency cannot be negative | exception | error | electronics, validation, frequency, reactance, valueerror |
| red should be between 0 and 255 | exception | error | python, validation, range, color, conversion |
| Duplicate symbol ( ) | exception | error | enigma, plugboard, duplicate, validation |
| Plugboard setting isn't type string | exception | error | enigma, plugboard, type-error, validation |
| Input arrays must have the same length. | validation | error | machine-learning, loss-function, data-alignment, input-validation |