Add NativeInteropException for native interop crashes

This commit is contained in:
2023-05-19 13:52:30 +02:00
parent ed70eb24c7
commit 3e792e6cd7
3 changed files with 21 additions and 8 deletions
@@ -1157,7 +1157,7 @@ namespace FlaxEngine.Interop
case Type _ when type.IsClass:
monoType = MTypes.Object;
break;
default: throw new Exception($"Unsupported type '{type.FullName}'");
default: throw new NativeInteropException($"Unsupported type '{type.FullName}'");
}
return (uint)monoType;
}