MorphyLib
Phylogenetic data reconstruction library accommodating inapplicable data
mplerror.h File Reference

Error codes and descriptions for MorphyLib. More...

Go to the source code of this file.

Enumerations

enum  MPL_ERR_T {
  ERR_EX_DATA_CONF = -15, ERR_OUT_OF_BOUNDS = -14, ERR_CASE_NOT_IMPL = -13, ERR_UNKNOWN_CHTYPE = -12,
  ERR_SYMBOL_MISMATCH = -11, ERR_MATCHING_PARENTHS = -10, ERR_ATTEMPT_OVERWRITE = -9, ERR_NO_DIMENSIONS = -8,
  ERR_DIMENS_UNDER = -7, ERR_DIMENS_OVER = -6, ERR_NO_DATA = -5, ERR_BAD_MALLOC = -4,
  ERR_BAD_PARAM = -3, ERR_UNEXP_NULLPTR = -2, ERR_INVALID_SYMBOL = -1, ERR_NO_ERROR = 0
}
 List of error codes. Each error is a negative value. These error codes are returned by library interface functions (and used by some internal functions) to report errors back to the caller. More...
 

Detailed Description

Error codes and descriptions for MorphyLib.

Enumeration Type Documentation

◆ MPL_ERR_T

enum MPL_ERR_T

List of error codes. Each error is a negative value. These error codes are returned by library interface functions (and used by some internal functions) to report errors back to the caller.

Enumerator
ERR_OUT_OF_BOUNDS 

Input conflicts with existing dataset

ERR_CASE_NOT_IMPL 

Attempt to index out of bounds of an array

ERR_UNKNOWN_CHTYPE 

Case not implemented.

ERR_SYMBOL_MISMATCH 

Character type is unknown. It either exceeds the list of character types or a user type matrix has not yet been supplied.

ERR_MATCHING_PARENTHS 

Symbols list and matrix have a mismatch (i.e. symbol not found).

ERR_ATTEMPT_OVERWRITE 

Data input has unexpected non-matching parentheses.

ERR_NO_DIMENSIONS 

Caller attempted to overwrite a loaded dataset.

ERR_DIMENS_UNDER 

Function requires pre-specified dimensions to function properly.

ERR_DIMENS_OVER 

Supplied dimensions underestimate size of dataset.

ERR_NO_DATA 

Supplied dimensions overestimate size of dataset.

ERR_BAD_MALLOC 

No dataset supplied.

ERR_BAD_PARAM 

Memory allocation failure.

ERR_UNEXP_NULLPTR 

Unexpected parameter value passed to function.

ERR_INVALID_SYMBOL 

Unexpected NULL pointer passed to function.

ERR_NO_ERROR 

Symbol in dataset or symbol list is not allowed by Morphy.