toBMKErrorCode method
Implementation
BMKErrorCode toBMKErrorCode() {
switch (this) {
case 0: return BMKErrorCode.BMKErrorOk;
case 2: return BMKErrorCode.BMKErrorConnect;
case 3: return BMKErrorCode.BMKErrorData;
case 4: return BMKErrorCode.BMKErrorRouteAddr;
case 100: return BMKErrorCode.BMKErrorResultNotFound;
case 200: return BMKErrorCode.BMKErrorLocationFailed;
case 300: return BMKErrorCode.BMKErrorPermissionCheckFailure;
case 310: return BMKErrorCode.BMKErrorParse;
default: return BMKErrorCode.values[this + 0];
}
}