Use statement on EncoderInterface for exception