use UnsupportedOperationException if cannot get checked registry

This commit is contained in:
dfsek 2021-12-16 19:49:34 -07:00
parent 7a238f833b
commit 89c43e98b9

View File

@ -34,6 +34,6 @@ public interface RegistryHolder {
} }
default <T> CheckedRegistry<T> getCheckedRegistry(Type type) throws IllegalStateException { default <T> CheckedRegistry<T> getCheckedRegistry(Type type) throws IllegalStateException {
throw new IllegalStateException("Cannot get checked registry."); throw new UnsupportedOperationException("Cannot get checked registry.");
} }
} }