Allows to get current error code from the given axlError value.
If the provided axlError doesn't not contain a valid error information, -1 is returned. Otherwise the specific error code is returned.