Adds Err for case when matching discriminator in encoding is not found.

Gives this specific error a type so I don't have to check the contents of the message string to be sure it's this type.