private static EmberException CreateEmberException(EndOfStreamException ex) => new EmberException("Unexpected end of stream.", ex);