Adds Err for case when matching discriminator in encoding is not found.
Merge pull request #38 from alissapajer/feature/matching-case-err

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