enum ErrorCode

Define types of error.

// enum values

SUCCESS = 0
CFG_ERR = 1
DEV_ERR = 2
MEM_ERR = 3