replace occured with occurred Fixes #3142
Added new functions allowing to get a string representation of an error code and a description of the error for connect and base error classes.