Constructor for the Exception, initializing all fields.
Parameters: reason - Description of the cause of the exception. Parameters: key - Key of the instance which caused the exception. Parameters: className - Name of the class to which the faultyinstance belongs.