validateEntry

open fun validateEntry(key: TKey, value: TValue)(source)

Validates an entry to be registered. Throws an exception, if the entry is invalid.

Implementors must call the super method to check if the key is not already registered.