KeyUnavailableException Summary Represents an exception when a dictionary key cannot be found. Description Represents an exception when a dictionary key cannot be found. Examples Example of using this exception with existent types 123456789import System;import System.Exceptions; Dictionary<string> emptyDict = {};string+ someKey = emptyDict["someKey"];final bool keyDoesNotExist = undefined == someKey;if (keyDoesNotExist) { throw new KeyUnavailableException();} Methods KeyUnavailableException (Constructor)Constructs a System.Exceptions.KeyUnavailableException object. Share HTML | BBCode | Direct Link