You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewArgumentNullException(nameof(config),"Config instance is null, cannot register.");
77
87
}
88
+
if(configis not T)
89
+
{
90
+
thrownewArgumentException($"{config.GetType()} declares it extends {nameof(SyncedConfig<T>)}<{typeof(T)}>. It should be declared to extend {nameof(SyncedConfig<T>)}<{config.GetType()}>.",nameof(config));
thrownewInvalidOperationException($"Attempted to register config instance of type `{typeof(T)}`, but an instance has already been registered.",exc);
101
+
thrownewInvalidOperationException($"Attempted to register config instance of type `{typeof(T)}`, but an instance has already been registered with key {key}.",exc);
thrownewArgumentNullException(nameof(config),"Config instance is null, cannot register.");
123
+
}
124
+
if(configis not T)
125
+
{
126
+
thrownewArgumentException($"{config.GetType()} declares it extends {nameof(SyncedConfig2<T>)}<{typeof(T)}>. It should be declared to extend {nameof(SyncedConfig2<T>)}<{config.GetType()}>.",nameof(config));
thrownewInvalidOperationException($"Attempted to register config instance of type `{typeof(T)}`, but an instance has already been registered with key {key}.",exc);
0 commit comments