Skip to content

Commit 66f8d82

Browse files
committed
declare custom exceptions as serializable
1 parent b055a2f commit 66f8d82

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/ConvertToModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace UnityEditor.Formats.Fbx.Exporter
99
{
10+
[System.Serializable]
1011
public class ConvertToLinkedPrefabException : System.Exception
1112
{
1213
public ConvertToLinkedPrefabException()

Packages/com.unity.formats.fbx/Editor/Scripts/FbxPrefabAutoUpdater.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ public static void Append<K1, K2, V>(ref Dictionary<K1, Dictionary<K2, List<V>>>
504504
/// <summary>
505505
/// Exception that denotes a likely programming error.
506506
/// </summary>
507+
[System.Serializable]
507508
public class FbxPrefabException : System.Exception
508509
{
509510
public FbxPrefabException() { }

0 commit comments

Comments
 (0)