holopy3/Assets/Normal/Realtime/Native/Exceptions.cs

12 lines
426 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System;
namespace Normal.Realtime.Native {
public class RealtimeNativeException : Exception {
public RealtimeNativeException(string message) : base(message) { }
public static RealtimeNativeException NativePointerIsNull(string className) {
return new RealtimeNativeException("Attempting to use native object (" + className + ") after it has already been deleted.");
}
}
}