getExceptionFromString function
Implementation
NativeException getExceptionFromString(String errorType) {
errorType = 'NativeException.$errorType';
return NativeException.values.firstWhere((f)=> f.toString() == errorType, orElse: () => NativeException.UNKNOWN_EXCEPTION);
}