cd oberror
makeob_error will generated in YOUR_OBERROR_PATH/build/bin by default.
make installob_error will be installed in /usr/local/bin by default.
ob_error --helpYou can get the user manual by --help option.
This part is for developers.
For example:
The ob error 4000 in src/ob_errno.def defined as
DEFINE_ERROR(OB_ERROR, -4000, -1, "HY000", "Common error");If you want to add the cause and solution info, you can change the define as
DEFINE_ERROR(OB_ERROR, -4000, -1, "HY000", "Common error", "CAUSE", "SOLUTION");And then regenerate the src/lib/ob_errno.h、src/ob_errno.h and src/ob_errno.cpp by
cd src
./gen_ob_errno.plFinally back to oberror dir and remake
cd ..
make && make install